	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_rdf_hip_get_alg_hit_pk    ## -- Begin function ldns_rdf_hip_get_alg_hit_pk
	.p2align	4, 0x90
_ldns_rdf_hip_get_alg_hit_pk:           ## @ldns_rdf_hip_get_alg_hit_pk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LDNS_STATUS_INVALID_POINTER@GOTPCREL(%rip), %r15
	testq	%r8, %r8
	je	LBB0_14
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.3:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.4:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.5:
	testq	%r9, %r9
	je	LBB0_14
## %bb.6:
	movq	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_HIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_ldns_rdf_size
	movq	_LDNS_STATUS_WIRE_RDATA_ERR@GOTPCREL(%rip), %r15
	cmpq	$6, %rax
	jb	LBB0_14
## %bb.9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ldns_rdf_data
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	4(%r14), %eax
	movl	%eax, (%r13)
	leaq	8(%r14), %rdi
	callq	_ldns_read_uint16
	movq	%rax, (%rbx)
	leaq	16(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	movslq	(%r12), %rcx
	leaq	(%r14,%rcx,4), %rdx
	addq	$16, %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, (%rsi)
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.10:
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	addq	%rcx, %rax
	addq	$4, %rax
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_12
## %bb.13:
	movq	_LDNS_STATUS_WIRE_RDATA_ERR@GOTPCREL(%rip), %r15
	jmp	LBB0_14
LBB0_7:
	movq	_LDNS_STATUS_INVALID_RDF_TYPE@GOTPCREL(%rip), %r15
LBB0_14:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_INVALID_POINTER,4,2 ## @LDNS_STATUS_INVALID_POINTER
	.comm	_LDNS_RDF_TYPE_HIP,8,3          ## @LDNS_RDF_TYPE_HIP
	.comm	_LDNS_STATUS_INVALID_RDF_TYPE,4,2 ## @LDNS_STATUS_INVALID_RDF_TYPE
	.comm	_LDNS_STATUS_WIRE_RDATA_ERR,4,2 ## @LDNS_STATUS_WIRE_RDATA_ERR
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_rdf_hip_get_alg_hit_pk    ; -- Begin function ldns_rdf_hip_get_alg_hit_pk
	.p2align	2
_ldns_rdf_hip_get_alg_hit_pk:           ; @ldns_rdf_hip_get_alg_hit_pk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _LDNS_STATUS_INVALID_POINTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_STATUS_INVALID_POINTER@GOTPAGEOFF]
	cbz	x4, LBB0_11
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_11
; %bb.2:
	mov	x24, x0
	cbz	x0, LBB0_11
; %bb.3:
	mov	x23, x1
	cbz	x1, LBB0_11
; %bb.4:
	mov	x21, x3
	cbz	x3, LBB0_11
; %bb.5:
	mov	x19, x5
	cbz	x5, LBB0_11
; %bb.6:
	mov	x22, x4
	mov	x0, x24
	bl	_ldns_rdf_get_type
Lloh2:
	adrp	x8, _LDNS_RDF_TYPE_HIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RDF_TYPE_HIP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x24
	bl	_ldns_rdf_size
	cmp	x0, #6
	b.hs	LBB0_10
; %bb.8:
Lloh5:
	adrp	x8, _LDNS_STATUS_WIRE_RDATA_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_STATUS_WIRE_RDATA_ERR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _LDNS_STATUS_INVALID_RDF_TYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_STATUS_INVALID_RDF_TYPE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x25, x0
	mov	x0, x24
	bl	_ldns_rdf_data
	mov	x24, x0
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	w8, [x0, #4]
	str	w8, [x23]
	add	x0, x0, #8
	bl	_ldns_read_uint16
	str	x0, [x22]
	add	x8, x24, #16
	str	x8, [x21]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	str	x8, [x19]
Lloh9:
	adrp	x8, _LDNS_STATUS_WIRE_RDATA_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_STATUS_WIRE_RDATA_ERR@GOTPAGEOFF]
	add	x10, x0, x9
	add	x10, x10, #4
Lloh11:
	adrp	x11, _LDNS_STATUS_OK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _LDNS_STATUS_OK@GOTPAGEOFF]
	cmp	x25, x10
	csel	x10, x8, x11, lo
	cmp	x0, #0
	csel	x10, x8, x10, eq
	cmp	w9, #0
	csel	x8, x8, x10, eq
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_INVALID_POINTER,4,2 ; @LDNS_STATUS_INVALID_POINTER
	.comm	_LDNS_RDF_TYPE_HIP,8,3          ; @LDNS_RDF_TYPE_HIP
	.comm	_LDNS_STATUS_INVALID_RDF_TYPE,4,2 ; @LDNS_STATUS_INVALID_RDF_TYPE
	.comm	_LDNS_STATUS_WIRE_RDATA_ERR,4,2 ; @LDNS_STATUS_WIRE_RDATA_ERR
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
.subsections_via_symbols
