	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_wire2rr                   ## -- Begin function ldns_wire2rr
	.p2align	4, 0x90
_ldns_wire2rr:                          ## @ldns_wire2rr
	.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	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_ldns_rr_new
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_ldns_wire2dname
	movq	_status_error@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LDNS_STATUS_CHECK_GOTO
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ldns_rr_set_owner
	movq	(%rbx), %rax
	leaq	4(%rax), %rcx
	cmpq	%r12, %rcx
	ja	LBB0_5
## %bb.1:
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_ldns_read_uint16
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_type
	movq	(%rbx), %rax
	leaq	2(%rax), %rcx
	movq	%rcx, (%rbx)
	leaq	8(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_ldns_read_uint16
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_class
	movq	(%rbx), %rcx
	leaq	2(%rcx), %rax
	movq	%rax, (%rbx)
	movq	_LDNS_SECTION_QUESTION@GOTPCREL(%rip), %rdx
	movl	$1, %esi
	cmpq	%r14, (%rdx)
	je	LBB0_4
## %bb.2:
	addq	$6, %rcx
	cmpq	%r12, %rcx
	jbe	LBB0_3
LBB0_5:
	movq	_LDNS_STATUS_PACKET_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ldns_rr_free
	jmp	LBB0_6
LBB0_3:
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_ldns_read_uint32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_set_ttl
	addq	$4, (%rbx)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_ldns_wire2rdf
	movq	_status_error@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LDNS_STATUS_CHECK_GOTO
	xorl	%esi, %esi
LBB0_4:
	movq	%r15, %rdi
	callq	_ldns_rr_set_question
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_status_error,4,2               ## @status_error
	.comm	_LDNS_STATUS_PACKET_OVERFLOW,4,2 ## @LDNS_STATUS_PACKET_OVERFLOW
	.comm	_LDNS_SECTION_QUESTION,8,3      ## @LDNS_SECTION_QUESTION
	.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_wire2rr                   ; -- Begin function ldns_wire2rr
	.p2align	2
_ldns_wire2rr:                          ; @ldns_wire2rr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_ldns_rr_new
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_ldns_wire2dname
Lloh0:
	adrp	x25, _status_error@GOTPAGE
Lloh1:
	ldr	x25, [x25, _status_error@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_LDNS_STATUS_CHECK_GOTO
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_ldns_rr_set_owner
	ldr	x8, [x21]
	add	x9, x8, #4
	cmp	x9, x22
	b.hi	LBB0_4
; %bb.1:
	add	x0, x23, x8, lsl #2
	bl	_ldns_read_uint16
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_rr_set_type
	ldr	x8, [x21]
	add	x8, x8, #2
	str	x8, [x21]
	add	x0, x23, x8, lsl #2
	bl	_ldns_read_uint16
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_rr_set_class
	ldr	x9, [x21]
	add	x8, x9, #2
	str	x8, [x21]
Lloh2:
	adrp	x10, _LDNS_SECTION_QUESTION@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LDNS_SECTION_QUESTION@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x10, x24
	b.ne	LBB0_3
; %bb.2:
	mov	w1, #1
	b	LBB0_6
LBB0_3:
	add	x9, x9, #6
	cmp	x9, x22
	b.ls	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _LDNS_STATUS_PACKET_OVERFLOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_STATUS_PACKET_OVERFLOW@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_ldns_rr_free
	b	LBB0_7
LBB0_5:
	add	x0, x23, x8, lsl #2
	bl	_ldns_read_uint32
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_rr_set_ttl
	ldr	x8, [x21]
	add	x8, x8, #4
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_ldns_wire2rdf
	ldr	w1, [x25]
	bl	_LDNS_STATUS_CHECK_GOTO
	mov	w1, #0
LBB0_6:
	mov	x0, x20
	bl	_ldns_rr_set_question
	str	x20, [x19]
Lloh8:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_status_error,4,2               ; @status_error
	.comm	_LDNS_STATUS_PACKET_OVERFLOW,4,2 ; @LDNS_STATUS_PACKET_OVERFLOW
	.comm	_LDNS_SECTION_QUESTION,8,3      ; @LDNS_SECTION_QUESTION
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
.subsections_via_symbols
