	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gethostbyname_r                ## -- Begin function gethostbyname_r
	.p2align	4, 0x90
_gethostbyname_r:                       ## @gethostbyname_r
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	___res_state
	movq	%rax, %r14
	movl	(%rax), %eax
	movq	_RES_INIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_res_ninit
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.2:
	movl	(%r14), %eax
LBB0_3:
	movq	_RES_USE_INET6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	%r14, %r9
	callq	_fakeaddr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	pushq	%r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_gethostbyname_internal
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_9
LBB0_6:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	pushq	%r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_gethostbyname_internal
	addq	$40, %rsp
	jmp	LBB0_11
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_NETDB_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_RES_SET_H_ERRNO
	movl	$-1, %eax
LBB0_10:
	addq	$24, %rsp
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_INIT,4,2                   ## @RES_INIT
	.comm	_NETDB_INTERNAL,4,2             ## @NETDB_INTERNAL
	.comm	_RES_USE_INET6,4,2              ## @RES_USE_INET6
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gethostbyname_r                ; -- Begin function gethostbyname_r
	.p2align	2
_gethostbyname_r:                       ; @gethostbyname_r
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	bl	___res_state
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RES_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RES_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_res_ninit
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	ldr	w8, [x21]
LBB0_3:
Lloh3:
	adrp	x9, _RES_USE_INET6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RES_USE_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x26, _AF_INET@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AF_INET@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w1, [x26]
	mov	x0, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_fakeaddr
	cbz	x0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	mov	x7, x21
	bl	_gethostbyname_internal
	cbz	w0, LBB0_9
LBB0_6:
	ldr	w1, [x26]
	mov	x0, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	mov	x7, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_gethostbyname_internal
LBB0_7:
	str	x24, [x20]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _NETDB_INTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETDB_INTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RES_SET_H_ERRNO
	mov	w0, #-1
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_INIT,4,2                   ; @RES_INIT
	.comm	_NETDB_INTERNAL,4,2             ; @NETDB_INTERNAL
	.comm	_RES_USE_INET6,4,2              ; @RES_USE_INET6
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
.subsections_via_symbols
