	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_data
_write_data:                            ## @write_data
	.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
	movq	(%rdi), %r14
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movl	%ecx, %ebx
	movq	%rdx, %r15
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	%ebx, %edx
	sarl	$8, %edx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_write_reg
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$14, %esi
	callq	_write_reg
	movq	%r14, %rdi
	movl	$17, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_write_block
	movl	$1, (%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_write_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_data
_write_data:                            ; @write_data
	.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	x20, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x3
	mov	x21, x2
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	asr	w2, w19, #8
	mov	x0, x20
	mov	w1, #13
	bl	_write_reg
	and	w2, w19, #0xff
	mov	x0, x20
	mov	w1, #14
	bl	_write_reg
	mov	x0, x20
	mov	w1, #17
	mov	x2, x21
	mov	x3, x19
	bl	_write_block
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x22
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_write_data
.subsections_via_symbols
