	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dns_find_cell
_dns_find_cell:                         ## @dns_find_cell
	.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	%rdx, %r14
	movq	%rsi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_rk_dns_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_rk_ns_t_afsdb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rax), %rdx
	cmpl	$1, (%rdx)
	jne	LBB0_7
## %bb.6:
	movl	4(%rdx), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_strlcpy
	xorl	%r15d, %r15d
LBB0_8:
	movq	%rbx, %rdi
	callq	_rk_dns_free_data
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"afsdb"

	.comm	_rk_ns_t_afsdb,8,3              ## @rk_ns_t_afsdb
	.no_dead_strip	_dns_find_cell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dns_find_cell
_dns_find_cell:                         ; @dns_find_cell
	.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
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rk_dns_lookup
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
Lloh2:
	adrp	x9, _rk_ns_t_afsdb@GOTPAGE
Lloh3:
	ldr	x9, [x9, _rk_ns_t_afsdb@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x8, #16]
	ldr	w11, [x10]
	cmp	w11, #1
	b.ne	LBB0_3
; %bb.6:
	ldr	w1, [x10, #4]
	mov	x0, x21
	mov	x2, x20
	bl	_strlcpy
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	w20, #-1
LBB0_8:
	mov	x0, x19
	bl	_rk_dns_free_data
	b	LBB0_10
LBB0_9:
	mov	w20, #-1
LBB0_10:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"afsdb"

	.comm	_rk_ns_t_afsdb,8,3              ; @rk_ns_t_afsdb
	.no_dead_strip	_dns_find_cell
.subsections_via_symbols
