	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gethostbyaddr                  ## -- Begin function gethostbyaddr
	.p2align	4, 0x90
_gethostbyaddr:                         ## @gethostbyaddr
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_INIT
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_proxychains_resolver@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_PDEBUG
	cmpl	$4, %ebx
	jne	LBB0_3
## %bb.2:
	leaq	_gethostbyaddr.buf(%rip), %r12
	movq	%r12, _gethostbyaddr.he(%rip)
	leaq	_gethostbyaddr.he(%rip), %r14
	leaq	_gethostbyaddr.ipv4(%rip), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, _gethostbyaddr.list(%rip)
	leaq	_gethostbyaddr.list(%rip), %rax
	movq	$0, _gethostbyaddr.list+8(%rip)
	movq	%rax, _gethostbyaddr.he+8(%rip)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _gethostbyaddr.he+28(%rip)
	movq	$0, _gethostbyaddr.aliases(%rip)
	leaq	_gethostbyaddr.aliases(%rip), %rax
	movq	%rax, _gethostbyaddr.he+16(%rip)
	movl	$4, _gethostbyaddr.he+24(%rip)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pc_stringfromipv4
LBB0_3:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_true_gethostbyaddr             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TODO: proper gethostbyaddr hook\n"

.zerofill __DATA,__bss,_gethostbyaddr.buf,16,4 ## @gethostbyaddr.buf
.zerofill __DATA,__bss,_gethostbyaddr.ipv4,4,0 ## @gethostbyaddr.ipv4
.zerofill __DATA,__bss,_gethostbyaddr.list,16,4 ## @gethostbyaddr.list
.zerofill __DATA,__bss,_gethostbyaddr.aliases,8,3 ## @gethostbyaddr.aliases
.zerofill __DATA,__bss,_gethostbyaddr.he,32,3 ## @gethostbyaddr.he
	.comm	_proxychains_resolver,4,2       ## @proxychains_resolver
L_.str.1:                               ## @.str.1
	.asciz	"len %u\n"

	.comm	_AF_INET,4,2                    ## @AF_INET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gethostbyaddr                  ; -- Begin function gethostbyaddr
	.p2align	2
_gethostbyaddr:                         ; @gethostbyaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_INIT
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PDEBUG
Lloh2:
	adrp	x8, _proxychains_resolver@GOTPAGE
Lloh3:
	ldr	x8, [x8, _proxychains_resolver@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PDEBUG
	cmp	w20, #4
	b.ne	LBB0_4
; %bb.2:
Lloh7:
	adrp	x20, _gethostbyaddr.he@PAGE
Lloh8:
	add	x20, x20, _gethostbyaddr.he@PAGEOFF
Lloh9:
	adrp	x21, _gethostbyaddr.buf@PAGE
Lloh10:
	add	x21, x21, _gethostbyaddr.buf@PAGEOFF
	str	x21, [x20]
Lloh11:
	adrp	x22, _gethostbyaddr.ipv4@PAGE
Lloh12:
	add	x22, x22, _gethostbyaddr.ipv4@PAGEOFF
	mov	w23, #4
	mov	x0, x22
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
Lloh13:
	adrp	x8, _gethostbyaddr.list@PAGE
Lloh14:
	add	x8, x8, _gethostbyaddr.list@PAGEOFF
	stp	x22, xzr, [x8]
Lloh15:
	adrp	x9, _AF_INET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh17:
	adrp	x10, _gethostbyaddr.aliases@PAGE
Lloh18:
	add	x10, x10, _gethostbyaddr.aliases@PAGEOFF
Lloh19:
	ldr	w9, [x9]
	str	xzr, [x10]
	stp	x8, x10, [x20, #8]
	stp	w23, w9, [x20, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_pc_stringfromipv4
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_true_gethostbyaddr
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TODO: proper gethostbyaddr hook\n"

.zerofill __DATA,__bss,_gethostbyaddr.buf,16,0 ; @gethostbyaddr.buf
.zerofill __DATA,__bss,_gethostbyaddr.ipv4,4,0 ; @gethostbyaddr.ipv4
.zerofill __DATA,__bss,_gethostbyaddr.list,16,3 ; @gethostbyaddr.list
.zerofill __DATA,__bss,_gethostbyaddr.aliases,8,3 ; @gethostbyaddr.aliases
.zerofill __DATA,__bss,_gethostbyaddr.he,32,3 ; @gethostbyaddr.he
	.comm	_proxychains_resolver,4,2       ; @proxychains_resolver
l_.str.1:                               ; @.str.1
	.asciz	"len %u\n"

	.comm	_AF_INET,4,2                    ; @AF_INET
.subsections_via_symbols
