	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolv_gethostby
_resolv_gethostby:                      ## @resolv_gethostby
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_gethostbyname
	movq	%rax, %r12
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-1072(%rbp), %r13
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	%r15d, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_write
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movl	12(%r12), %edx
	movl	16(%r12), %esi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_memcpy
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	movq	%rbx, %rdi
	callq	_gethostbyaddr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %r8
	leaq	L_.str.3(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
LBB0_3:
	cmpq	$1, %r12
	sbbl	%r14d, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p: host %s %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"not found"

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

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.3:                               ## @.str.3
	.asciz	"%p: reverse %s\n"

	.no_dead_strip	_resolv_gethostby
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolv_gethostby
_resolv_gethostby:                      ; @resolv_gethostby
	.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
	sub	sp, sp, #1040
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x0, x1
	bl	_gethostbyname
	mov	x19, x0
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	str	x8, [sp]
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x20
	mov	x4, x21
	bl	_snprintf
	mov	x2, x0
Lloh9:
	adrp	x21, _STDOUT_FILENO@GOTPAGE
Lloh10:
	ldr	x21, [x21, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_write
	cbz	x19, LBB0_3
; %bb.1:
	ldp	w2, w1, [x19, #12]
	add	x0, sp, #8
	bl	_memcpy
	ldp	w2, w1, [x19, #8]
	add	x0, sp, #8
	bl	_gethostbyaddr
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x4, [x0]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x20
	bl	_snprintf
	mov	x2, x0
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_write
LBB0_3:
	cmp	x19, #0
	csetm	w0, eq
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #1040
	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
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p: host %s %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"not found"

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

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.3:                               ; @.str.3
	.asciz	"%p: reverse %s\n"

	.no_dead_strip	_resolv_gethostby
.subsections_via_symbols
