	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_ref
_load_ref:                              ## @load_ref
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ssl_read_buf
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_load_qinfo
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movl	8(%r12), %edi
	movl	-60(%rbp), %esi
	movl	-64(%rbp), %edx
	movl	-72(%rbp), %r8d
	movl	-68(%rbp), %ecx
	movl	-44(%rbp), %r9d
	movq	(%r12), %rax
	movl	(%rax), %eax
	pushq	$0
	pushq	%rax
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_packed_rrset_copy_region
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_lock_rw_unlock
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	setne	%bl
	jmp	LBB0_8
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_log_warn
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BADREF"

L_.str.1:                               ## @.str.1
	.asciz	" %u"

L_.str.2:                               ## @.str.2
	.asciz	"error cannot parse flags: %s"

	.no_dead_strip	_load_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_ref
_load_ref:                              ; @load_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	mov	x0, x1
	bl	_sldns_buffer_begin
	mov	x23, x0
	mov	x0, x25
	mov	x1, x24
	bl	_ssl_read_buf
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #6
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.2:
	add	x1, sp, #16
	mov	x0, x23
	mov	x2, x21
	bl	_load_qinfo
	cbz	x0, LBB0_8
; %bb.3:
	mov	x23, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x22, #8]
	ldp	w2, w1, [sp, #24]
	ldp	w4, w3, [sp, #16]
	ldr	w5, [sp, #12]
	ldr	x8, [x22]
	ldr	w6, [x8]
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_6
; %bb.5:
	mov	x23, x0
	ldr	x8, [x22]
	ldr	w2, [x8]
	mov	x1, x21
	bl	_packed_rrset_copy_region
	str	x0, [x19]
	mov	x0, x23
	bl	_lock_rw_unlock
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_8
LBB0_6:
	str	wzr, [x20]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_log_warn
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BADREF"

l_.str.1:                               ; @.str.1
	.asciz	" %u"

l_.str.2:                               ; @.str.2
	.asciz	"error cannot parse flags: %s"

	.no_dead_strip	_load_ref
.subsections_via_symbols
