	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__sethostdnsent                 ## -- Begin function _sethostdnsent
	.p2align	4, 0x90
__sethostdnsent:                        ## @_sethostdnsent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	___res_state
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_RES_INIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	callq	_res_ninit
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.2:
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %eax
LBB0_5:
	movq	_RES_STAYOPEN@GOTPCREL(%rip), %rcx
	movq	_RES_USEVC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_INIT,4,2                   ## @RES_INIT
	.comm	_RES_STAYOPEN,4,2               ## @RES_STAYOPEN
	.comm	_RES_USEVC,4,2                  ## @RES_USEVC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__sethostdnsent                 ; -- Begin function _sethostdnsent
	.p2align	2
__sethostdnsent:                        ; @_sethostdnsent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	___res_state
	mov	x19, 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.eq	LBB0_2
; %bb.1:
	cbnz	w20, LBB0_5
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_res_ninit
	cbz	w20, LBB0_6
; %bb.3:
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x19]
LBB0_5:
Lloh3:
	adrp	x9, _RES_STAYOPEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RES_STAYOPEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _RES_USEVC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RES_USEVC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_INIT,4,2                   ; @RES_INIT
	.comm	_RES_STAYOPEN,4,2               ; @RES_STAYOPEN
	.comm	_RES_USEVC,4,2                  ; @RES_USEVC
.subsections_via_symbols
