	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_rr
_load_rr:                               ## @load_rr
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LDNS_RR_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ssl_read_buf
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	subq	$8, %rsp
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$3600, %r8d                     ## imm = 0xE10
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_sldns_str2wire_rr_buf
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_sldns_get_errorstr_parse
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_log_warn
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_3:
	movq	24(%rbp), %rax
	movl	$0, (%rax)
	movl	$1, %r14d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, 16(%rbp)
	je	LBB0_9
## %bb.7:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sldns_wirerr_get_type
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_9:
	movq	32(%rbp), %rbx
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sldns_wirerr_get_ttl
	addq	%rbx, %rax
	movq	16(%r13), %rcx
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ebx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r15, %rdi
	callq	_sldns_buffer_clear
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sldns_wirerr_get_rdatalen
	addq	$2, %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sldns_wirerr_get_rdatawl
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_regional_alloc_init
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_12
## %bb.10:
	movl	%r14d, %eax
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sldns_wirerr_get_type
	movq	%rax, %rdi
	callq	_htons
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sldns_wirerr_get_class
	movq	%rax, %rdi
	callq	_htons
	movq	%rax, 16(%rbx)
	movq	-56(%rbp), %rdx
	movq	%rdx, (%rbx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_regional_alloc_init
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_log_warn
	jmp	LBB0_13
LBB0_8:
	movq	%r15, %rdi
	callq	_sldns_buffer_begin
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_log_warn
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_BUF_SIZE,4,2           ## @LDNS_RR_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BADRR\n"

L_.str.1:                               ## @.str.1
	.asciz	"error cannot parse rr: %s: %s"

	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ## @LDNS_RR_TYPE_RRSIG
L_.str.2:                               ## @.str.2
	.asciz	"error expected rrsig but got %s"

L_.str.3:                               ## @.str.3
	.asciz	"error out of memory"

	.no_dead_strip	_load_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_rr
_load_rr:                               ; @load_rr
	.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
	sub	sp, sp, #32
	mov	x26, x7
	mov	x25, x6
	mov	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _LDNS_RR_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	stp	xzr, x8, [x29, #-88]
	bl	_ssl_read_buf
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x24
	bl	_sldns_buffer_begin
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x24
	bl	_sldns_buffer_begin
	str	wzr, [sp, #-16]!
	sub	x2, x29, #80
	sub	x3, x29, #88
	mov	x1, x21
	mov	w4, #3600
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_sldns_str2wire_rr_buf
	add	sp, sp, #16
	cbz	w0, LBB0_10
; %bb.3:
	bl	_sldns_get_errorstr_parse
	mov	x19, x0
	mov	x0, x24
	bl	_sldns_buffer_begin
	stp	x19, x0, [sp, #-16]!
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_log_warn
	add	sp, sp, #16
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	str	wzr, [x26]
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.9:
	sub	sp, x29, #64
	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
LBB0_10:
	cbz	w25, LBB0_12
; %bb.11:
	ldp	x2, x1, [x29, #-88]
	mov	x0, x21
	bl	_sldns_wirerr_get_type
Lloh15:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
LBB0_12:
	ldr	x25, [x29, #16]
	ldp	x2, x1, [x29, #-88]
	mov	x0, x21
	bl	_sldns_wirerr_get_ttl
	add	x8, x0, x25
	ldr	x9, [x23, #16]
	mov	w10, w22
	lsl	x25, x10, #3
	str	x8, [x9, x25]
	mov	x0, x24
	bl	_sldns_buffer_clear
	ldp	x2, x1, [x29, #-88]
	mov	x0, x21
	bl	_sldns_wirerr_get_rdatalen
	add	x8, x0, #2
	ldr	x9, [x23]
	str	x8, [x9, x25]
	ldp	x2, x1, [x29, #-88]
	mov	x0, x21
	bl	_sldns_wirerr_get_rdatawl
	mov	x1, x0
	ldr	x8, [x23]
	ldr	x2, [x8, x25]
	mov	x0, x20
	bl	_regional_alloc_init
	ldr	x8, [x23, #8]
	str	x0, [x8, x25]
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x25]
	cbz	x8, LBB0_15
; %bb.13:
	cbnz	w22, LBB0_7
; %bb.14:
	ldp	x2, x1, [x29, #-88]
	mov	x0, x21
	bl	_sldns_wirerr_get_type
	bl	_htons
	str	x0, [x19, #24]
	ldp	x2, x1, [x29, #-88]
	mov	x0, x21
	bl	_sldns_wirerr_get_class
	bl	_htons
	str	x0, [x19, #16]
	ldur	x2, [x29, #-88]
	str	x2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_regional_alloc_init
	str	x0, [x19, #8]
	cbnz	x0, LBB0_7
LBB0_15:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_warn
	b	LBB0_5
LBB0_16:
	mov	x0, x24
	bl	_sldns_buffer_begin
	str	x0, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_BUF_SIZE,4,2           ; @LDNS_RR_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BADRR\n"

l_.str.1:                               ; @.str.1
	.asciz	"error cannot parse rr: %s: %s"

	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
l_.str.2:                               ; @.str.2
	.asciz	"error expected rrsig but got %s"

l_.str.3:                               ; @.str.3
	.asciz	"error out of memory"

	.no_dead_strip	_load_rr
.subsections_via_symbols
