	.file	"extr_rdata.c_ldns_rdf_hip_get_alg_hit_pk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ldns_rdf_hip_get_alg_hit_pk
	.type	ldns_rdf_hip_get_alg_hit_pk, @function
ldns_rdf_hip_get_alg_hit_pk:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L11
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	test	rsi, rsi
	je	.L2
	mov	r14, rcx
	test	rcx, rcx
	je	.L2
	mov	r15, rdx
	test	rdx, rdx
	je	.L2
	mov	r12, r9
	test	r9, r9
	je	.L2
	mov	r13, r8
	test	r8, r8
	je	.L2
	mov	rbp, rdi
	call	ldns_rdf_get_type@PLT
	cmp	rax, QWORD PTR LDNS_RDF_TYPE_HIP[rip]
	je	.L6
	mov	eax, DWORD PTR LDNS_STATUS_INVALID_RDF_TYPE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR LDNS_STATUS_INVALID_POINTER[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	ldns_rdf_size@PLT
	cmp	rax, 5
	ja	.L7
.L8:
	mov	eax, DWORD PTR LDNS_STATUS_WIRE_RDATA_ERR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR LDNS_STATUS_INVALID_POINTER[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	ldns_rdf_data@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	lea	rdi, 8[rbp]
	mov	DWORD PTR [r15], eax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR [rbx], eax
	call	ldns_read_uint16@PLT
	lea	rcx, 16[rbp]
	mov	QWORD PTR 0[r13], rax
	mov	QWORD PTR [r14], rcx
	movsx	rcx, DWORD PTR [r15]
	mov	rsi, rcx
	add	rcx, 4
	lea	rdi, 0[rbp+rcx*4]
	mov	QWORD PTR [r12], rdi
	test	rax, rax
	je	.L8
	test	esi, esi
	je	.L8
	mov	rdx, QWORD PTR 8[rsp]
	add	rcx, rax
	mov	eax, DWORD PTR LDNS_STATUS_OK[rip]
	cmp	rcx, rdx
	jbe	.L1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ldns_rdf_hip_get_alg_hit_pk, .-ldns_rdf_hip_get_alg_hit_pk
	.comm	LDNS_STATUS_WIRE_RDATA_ERR,4,4
	.comm	LDNS_STATUS_OK,4,4
	.comm	LDNS_STATUS_INVALID_RDF_TYPE,4,4
	.comm	LDNS_STATUS_INVALID_POINTER,4,4
	.comm	LDNS_RDF_TYPE_HIP,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rdata.c_ldns_rdf_hip_get_alg_hit_pk.c"
	.text
	.align	2
	.global	ldns_rdf_hip_get_alg_hit_pk
	.syntax unified
	.arm
	.fpu softvfp
	.type	ldns_rdf_hip_get_alg_hit_pk, %function
ldns_rdf_hip_get_alg_hit_pk:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	beq	.L10
	cmp	r2, #0
	cmpne	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r6, r3
	beq	.L2
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #24]
	cmp	r2, #0
	cmpne	r3, #0
	beq	.L2
	mov	r4, r0
	mov	r5, r1
	bl	ldns_rdf_get_type
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	ldr	r3, .L14+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	bx	lr
.L5:
	mov	r0, r4
	bl	ldns_rdf_size
	cmp	r0, #5
	mov	r8, r0
	bhi	.L6
.L7:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	bl	ldns_rdf_data
	mov	r4, r0
	ldr	r3, [r0]
	add	r0, r0, #8
	str	r3, [r7]
	ldr	r3, [r4, #4]
	str	r3, [r5]
	bl	ldns_read_uint16
	ldr	r3, [r7]
	ldr	r1, [sp, #24]
	cmp	r3, #0
	cmpne	r0, #0
	add	r2, r4, #16
	str	r0, [r1]
	add	r3, r3, #4
	str	r2, [r6]
	ldr	r2, [sp, #28]
	add	r4, r4, r3, lsl #2
	str	r4, [r2]
	beq	.L7
	add	r0, r0, r3
	cmp	r0, r8
	bhi	.L7
	ldr	r3, .L14+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	LDNS_RDF_TYPE_HIP
	.word	LDNS_STATUS_INVALID_RDF_TYPE
	.word	LDNS_STATUS_INVALID_POINTER
	.word	LDNS_STATUS_WIRE_RDATA_ERR
	.word	LDNS_STATUS_OK
	.size	ldns_rdf_hip_get_alg_hit_pk, .-ldns_rdf_hip_get_alg_hit_pk
	.comm	LDNS_STATUS_WIRE_RDATA_ERR,4,4
	.comm	LDNS_STATUS_OK,4,4
	.comm	LDNS_STATUS_INVALID_RDF_TYPE,4,4
	.comm	LDNS_STATUS_INVALID_POINTER,4,4
	.comm	LDNS_RDF_TYPE_HIP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
