	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_host_ip
_resolve_host_ip:                       ## @resolve_host_ip
	.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	%r9, %r14
	movl	%r8d, %eax
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r8
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_ub_resolve
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_verb@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.2:
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rcx, %rbx
	movl	%eax, %edi
	callq	_ub_strerror
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_18
LBB0_3:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.7:
	cmpl	$0, 24(%rdi)
	je	LBB0_16
## %bb.8:
	cmpq	$0, 16(%rdi)
	je	LBB0_9
LBB0_16:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_18
LBB0_9:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	8(%rax,%rbx,2), %rsi
	addq	$4, %rbx
	testq	%rsi, %rsi
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movl	(%rax,%rbx), %edx
	movl	%r13d, %edi
	movl	%r15d, %ecx
	callq	_RR_to_ip
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%r14)
	jmp	LBB0_14
LBB0_15:
	callq	_ub_resolve_free
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_6:
	movq	%rbx, %rdi
	callq	_ub_ctx_delete
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,8,3                       ## @verb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: resolve %s %s: %s\n"

	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
L_.str.1:                               ## @.str.1
	.asciz	"A"

L_.str.2:                               ## @.str.2
	.asciz	"AAAA"

L_.str.4:                               ## @.str.4
	.asciz	"resolve %s %s: no result\n"

L_str:                                  ## @str
	.asciz	"out of memory"

	.no_dead_strip	_resolve_host_ip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_host_ip
_resolve_host_ip:                       ; @resolve_host_ip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x5
	mov	x8, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #24]
	add	x4, sp, #24
	mov	x2, x3
	mov	x3, x8
	bl	_ub_resolve
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _verb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x19, x10, x9, eq
	bl	_ub_strerror
	stp	x19, x0, [sp, #8]
	str	x22, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_17
; %bb.4:
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _verb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.7:
Lloh15:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, l_.str.2@PAGE
Lloh19:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh20:
	adrp	x10, l_.str.1@PAGE
Lloh21:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x8, x10, x9, eq
	stp	x22, x8, [sp]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_printf
LBB0_9:
	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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.11:
	ldr	x1, [x8]
	cbz	x1, LBB0_16
; %bb.12:
	mov	x22, #0
	mov	w23, #8
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	x1, [x8, x23]
	add	x22, x22, #4
	add	x23, x23, #8
	cbz	x1, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	ldr	w2, [x8, x22]
	mov	x0, x19
	mov	x3, x21
	bl	_RR_to_ip
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20]
	str	x8, [x0]
	str	x0, [x20]
	b	LBB0_13
LBB0_16:
	bl	_ub_resolve_free
	b	LBB0_9
LBB0_17:
Lloh24:
	adrp	x8, _verb@GOTPAGE
Lloh25:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
Lloh27:
	adrp	x0, l_str@PAGE
Lloh28:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_19:
	mov	x0, x23
	bl	_ub_ctx_delete
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,8,3                       ; @verb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: resolve %s %s: %s\n"

	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
l_.str.1:                               ; @.str.1
	.asciz	"A"

l_.str.2:                               ; @.str.2
	.asciz	"AAAA"

l_.str.4:                               ; @.str.4
	.asciz	"resolve %s %s: no result\n"

l_str:                                  ; @str
	.asciz	"out of memory"

	.no_dead_strip	_resolve_host_ip
.subsections_via_symbols
