	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___res_state                    ## -- Begin function __res_state
	.p2align	4, 0x90
___res_state:                           ## @__res_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_thr_main
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	__res@GOTPCREL(%rip), %rdi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_res_check_reload               ## TAILCALL
LBB0_2:
	movq	_res_keycreate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_res_init_once@GOTPCREL(%rip), %rdi
	callq	_thr_once
	movq	__res@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	_res_thr_keycreated@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.4:
	movq	_res_key@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_thr_getspecific
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rdi
	jmp	LBB0_6
LBB0_7:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_thr_setspecific
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__res,4,2                       ## @_res
	.comm	_res_init_once,4,2              ## @res_init_once
	.comm	_res_keycreate,4,2              ## @res_keycreate
	.comm	_res_thr_keycreated,4,2         ## @res_thr_keycreated
	.comm	_res_key,4,2                    ## @res_key
	.comm	_RES_TIMEOUT,4,2                ## @RES_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___res_state                    ; -- Begin function __res_state
	.p2align	2
___res_state:                           ; @__res_state
	.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
	bl	_thr_main
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, __res@GOTPAGE
Lloh1:
	ldr	x0, [x0, __res@GOTPAGEOFF]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_res_check_reload
LBB0_3:
Lloh2:
	adrp	x8, _res_keycreate@GOTPAGE
Lloh3:
	ldr	x8, [x8, _res_keycreate@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, _res_init_once@GOTPAGE
Lloh6:
	ldr	x0, [x0, _res_init_once@GOTPAGEOFF]
	bl	_thr_once
Lloh7:
	adrp	x8, _res_thr_keycreated@GOTPAGE
Lloh8:
	ldr	x8, [x8, _res_thr_keycreated@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_6
LBB0_4:
Lloh10:
	adrp	x19, __res@GOTPAGE
Lloh11:
	ldr	x19, [x19, __res@GOTPAGEOFF]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x20, _res_key@GOTPAGE
Lloh13:
	ldr	x20, [x20, _res_key@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_thr_getspecific
	cbnz	x0, LBB0_2
; %bb.7:
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.8:
	mov	x19, x0
	ldr	w0, [x20]
	mov	x1, x19
	bl	_thr_setspecific
	cbz	x0, LBB0_5
; %bb.9:
	mov	x0, x19
	bl	_free
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	__res,4,2                       ; @_res
	.comm	_res_init_once,4,2              ; @res_init_once
	.comm	_res_keycreate,4,2              ; @res_keycreate
	.comm	_res_thr_keycreated,4,2         ; @res_thr_keycreated
	.comm	_res_key,4,2                    ; @res_key
	.comm	_RES_TIMEOUT,4,2                ; @RES_TIMEOUT
.subsections_via_symbols
