	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_wire2pkt_hdr
_ldns_wire2pkt_hdr:                     ## @ldns_wire2pkt_hdr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	(%rcx), %rax
	cmpq	%rdx, %rax
	jbe	LBB0_2
## %bb.1:
	movq	_LDNS_STATUS_WIRE_INCOMPLETE_HEADER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_LDNS_ID_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_id
	movq	%rbx, %rdi
	callq	_LDNS_QR_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_qr
	movq	%rbx, %rdi
	callq	_LDNS_OPCODE_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_opcode
	movq	%rbx, %rdi
	callq	_LDNS_AA_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_aa
	movq	%rbx, %rdi
	callq	_LDNS_TC_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_tc
	movq	%rbx, %rdi
	callq	_LDNS_RD_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_rd
	movq	%rbx, %rdi
	callq	_LDNS_RA_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_ra
	movq	%rbx, %rdi
	callq	_LDNS_AD_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_ad
	movq	%rbx, %rdi
	callq	_LDNS_CD_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_cd
	movq	%rbx, %rdi
	callq	_LDNS_RCODE_WIRE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_rcode
	movq	%rbx, %rdi
	callq	_LDNS_QDCOUNT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_qdcount
	movq	%rbx, %rdi
	callq	_LDNS_ANCOUNT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_ancount
	movq	%rbx, %rdi
	callq	_LDNS_NSCOUNT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_nscount
	movq	%rbx, %rdi
	callq	_LDNS_ARCOUNT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_pkt_set_arcount
	movq	(%r12), %rax
	addq	%rax, (%r14)
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ## @LDNS_HEADER_SIZE
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_HEADER,4,2 ## @LDNS_STATUS_WIRE_INCOMPLETE_HEADER
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
	.no_dead_strip	_ldns_wire2pkt_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_wire2pkt_hdr
_ldns_wire2pkt_hdr:                     ; @ldns_wire2pkt_hdr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x3]
Lloh0:
	adrp	x22, _LDNS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_HEADER_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x9, x8
	cmp	x8, x2
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _LDNS_STATUS_WIRE_INCOMPLETE_HEADER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_STATUS_WIRE_INCOMPLETE_HEADER@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_LDNS_ID_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_id
	mov	x0, x21
	bl	_LDNS_QR_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_qr
	mov	x0, x21
	bl	_LDNS_OPCODE_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_opcode
	mov	x0, x21
	bl	_LDNS_AA_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_aa
	mov	x0, x21
	bl	_LDNS_TC_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_tc
	mov	x0, x21
	bl	_LDNS_RD_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_rd
	mov	x0, x21
	bl	_LDNS_RA_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_ra
	mov	x0, x21
	bl	_LDNS_AD_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_ad
	mov	x0, x21
	bl	_LDNS_CD_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_cd
	mov	x0, x21
	bl	_LDNS_RCODE_WIRE
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_rcode
	mov	x0, x21
	bl	_LDNS_QDCOUNT
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_qdcount
	mov	x0, x21
	bl	_LDNS_ANCOUNT
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_ancount
	mov	x0, x21
	bl	_LDNS_NSCOUNT
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_nscount
	mov	x0, x21
	bl	_LDNS_ARCOUNT
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_pkt_set_arcount
	ldr	x8, [x22]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
Lloh4:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ; @LDNS_HEADER_SIZE
	.comm	_LDNS_STATUS_WIRE_INCOMPLETE_HEADER,4,2 ; @LDNS_STATUS_WIRE_INCOMPLETE_HEADER
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
	.no_dead_strip	_ldns_wire2pkt_hdr
.subsections_via_symbols
