	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_get
_res_get:                               ## @res_get
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %ebx
	testl	%edx, (%rsi)
	jne	LBB0_4
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	xorl	%ebx, %ebx
	testl	%r12d, %eax
	jne	LBB0_3
## %bb.2:
	orl	%r12d, (%r13)
	orl	%r12d, %eax
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_dprintk
	movl	$1, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"res: get %d\n"

	.no_dead_strip	_res_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_get
_res_get:                               ; @res_get
	.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
	ldr	w8, [x1]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #1
	b	LBB0_6
LBB0_2:
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	ldr	w9, [x22]
	orr	w9, w9, w20
	str	w9, [x22]
	orr	w8, w8, w20
	str	w8, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	mov	w20, #1
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"res: get %d\n"

	.no_dead_strip	_res_get
.subsections_via_symbols
