	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup
_lookup:                                ## @lookup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_massage_qname
	movq	%rax, %r15
	movl	-44(%rbp), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_massage_type
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_massage_class
	movl	%eax, %ebx
	cmpl	$0, -48(%rbp)
	je	LBB0_3
## %bb.1:
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	movl	$1, %r8d
	callq	_dnslook
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_dnslook
	movq	_LDNS_RR_TYPE_MX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	$1, %r8d
LBB0_4:
	callq	_dnslook
LBB0_5:
	movq	%r14, %rdi
	callq	_ub_ctx_delete
	movq	%r15, %rdi
	callq	_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_MX,4,2            ## @LDNS_RR_TYPE_MX
	.no_dead_strip	_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup
_lookup:                                ; @lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x8, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x8
	bl	_massage_qname
	mov	x20, x0
	ldr	w1, [sp, #8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_massage_type
	mov	x22, x0
	mov	x0, x21
	bl	_massage_class
	mov	x21, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	mov	w4, #1
	bl	_dnslook
	cbnz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	mov	w4, #0
	bl	_dnslook
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_MX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_MX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	mov	w4, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1
LBB0_4:
	bl	_dnslook
LBB0_5:
	mov	x0, x19
	bl	_ub_ctx_delete
	mov	x0, x20
	bl	_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_MX,4,2            ; @LDNS_RR_TYPE_MX
	.no_dead_strip	_lookup
.subsections_via_symbols
