	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daio_mgr_commit_write
_daio_mgr_commit_write:                 ## @daio_mgr_commit_write
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	movl	4(%rsi), %eax
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	testb	$1, %cl
	je	LBB0_4
## %bb.3:
	andl	$-2, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_4
LBB0_1:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_19
LBB0_4:
	testb	$1, %al
	jne	LBB0_5
## %bb.6:
	testb	$2, %cl
	jne	LBB0_7
LBB0_8:
	testb	$2, %al
	jne	LBB0_9
LBB0_10:
	testb	$4, %cl
	jne	LBB0_11
LBB0_12:
	testb	$4, %al
	jne	LBB0_13
LBB0_14:
	testb	$8, %cl
	jne	LBB0_15
LBB0_16:
	testb	$8, %al
	je	LBB0_18
LBB0_17:
	andl	$-9, %eax
	movl	%eax, 4(%rbx)
LBB0_18:
	movq	_I2SCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	callq	_hw_write_20kx
	movl	$1, %edi
	callq	_mdelay
LBB0_19:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movl	%eax, %edx
	andl	$2, %edx
	xorl	$-2, %edx
	andl	%eax, %edx
	movl	%edx, %ecx
	andl	$-6, %ecx
	testb	$4, %al
	cmovel	%edx, %ecx
	andl	$7, %eax
	movl	%ecx, %edx
	andl	$8, %edx
	orl	%edx, %eax
	je	LBB0_22
## %bb.21:
	movl	%ecx, %eax
	andl	$-10, %eax
	testl	%edx, %edx
	cmovel	%ecx, %eax
	movl	%eax, 8(%rbx)
LBB0_22:
	movq	_SPOCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	36(%rbx), %edx
	movq	%r14, %rdi
	callq	_hw_write_20kx
	movl	$1, %edi
	callq	_mdelay
LBB0_23:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.24:
	movl	%eax, %edx
	andl	$2, %edx
	xorl	$-2, %edx
	andl	%eax, %edx
	movl	%edx, %ecx
	andl	$-6, %ecx
	testb	$4, %al
	cmovel	%edx, %ecx
	andl	$7, %eax
	movl	%ecx, %edx
	andl	$8, %edx
	orl	%edx, %eax
	je	LBB0_26
## %bb.25:
	movl	%ecx, %eax
	andl	$-10, %eax
	testl	%edx, %edx
	cmovel	%ecx, %eax
	movl	%eax, 12(%rbx)
LBB0_26:
	movq	_SPICTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	32(%rbx), %edx
	movq	%r14, %rdi
	callq	_hw_write_20kx
	movl	$1, %edi
	callq	_mdelay
LBB0_27:
	cmpq	$0, 16(%rbx)
	je	LBB0_29
## %bb.28:
	movq	_DAOIMAP@GOTPCREL(%rip), %rax
	movslq	24(%rbx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movl	28(%rbx), %edx
	movq	%r14, %rdi
	callq	_hw_write_20kx
	movq	$0, 16(%rbx)
LBB0_29:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	andl	$-2, %eax
	movl	%eax, 4(%rbx)
	testb	$2, %cl
	je	LBB0_8
LBB0_7:
	andl	$-3, %ecx
	movl	%ecx, (%rbx)
	testb	$2, %al
	je	LBB0_10
LBB0_9:
	andl	$-3, %eax
	movl	%eax, 4(%rbx)
	testb	$4, %cl
	je	LBB0_12
LBB0_11:
	andl	$-5, %ecx
	movl	%ecx, (%rbx)
	testb	$4, %al
	je	LBB0_14
LBB0_13:
	andl	$-5, %eax
	movl	%eax, 4(%rbx)
	testb	$8, %cl
	je	LBB0_16
LBB0_15:
	andl	$-9, %ecx
	movl	%ecx, (%rbx)
	testb	$8, %al
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_I2SCTL,8,3                     ## @I2SCTL
	.comm	_SPOCTL,8,3                     ## @SPOCTL
	.comm	_SPICTL,8,3                     ## @SPICTL
	.comm	_DAOIMAP,8,3                    ## @DAOIMAP
	.no_dead_strip	_daio_mgr_commit_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daio_mgr_commit_write
_daio_mgr_commit_write:                 ; @daio_mgr_commit_write
	.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	x19, x1
	mov	x20, x0
	ldp	w9, w8, [x1]
	cbz	w9, LBB0_22
; %bb.1:
	tbnz	w9, #0, LBB0_24
; %bb.2:
	tbnz	w8, #0, LBB0_25
LBB0_3:
	tbnz	w9, #1, LBB0_26
LBB0_4:
	tbnz	w8, #1, LBB0_27
LBB0_5:
	tbnz	w9, #2, LBB0_28
LBB0_6:
	tbnz	w8, #2, LBB0_29
LBB0_7:
	tbnz	w9, #3, LBB0_30
LBB0_8:
	tbz	w8, #3, LBB0_10
LBB0_9:
	and	w8, w8, #0xfffffff7
	str	w8, [x19, #4]
LBB0_10:
Lloh0:
	adrp	x8, _I2SCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2SCTL@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	ldr	w2, [x19, #40]
	mov	x0, x20
	bl	_hw_write_20kx
	mov	w0, #1
	bl	_mdelay
LBB0_11:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.12:
	and	w9, w8, #0x2
	eor	w9, w9, #0xfffffffe
	and	w9, w8, w9
	and	w10, w9, #0xfffffffb
	tst	w8, #0x4
	csel	w9, w9, w10, eq
	and	w10, w9, #0x8
	mov	x11, x10
	bfxil	w11, w8, #0, #3
	cbz	w11, LBB0_14
; %bb.13:
	mov	w8, #-10
	and	w8, w9, w8
	cmp	w10, #0
	csel	w8, w9, w8, eq
	str	w8, [x19, #8]
LBB0_14:
Lloh3:
	adrp	x8, _SPOCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPOCTL@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	ldr	w2, [x19, #36]
	mov	x0, x20
	bl	_hw_write_20kx
	mov	w0, #1
	bl	_mdelay
LBB0_15:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_19
; %bb.16:
	and	w9, w8, #0x2
	eor	w9, w9, #0xfffffffe
	and	w9, w8, w9
	and	w10, w9, #0xfffffffb
	tst	w8, #0x4
	csel	w9, w9, w10, eq
	and	w10, w9, #0x8
	mov	x11, x10
	bfxil	w11, w8, #0, #3
	cbz	w11, LBB0_18
; %bb.17:
	mov	w8, #-10
	and	w8, w9, w8
	cmp	w10, #0
	csel	w8, w9, w8, eq
	str	w8, [x19, #12]
LBB0_18:
Lloh6:
	adrp	x8, _SPICTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPICTL@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x20
	bl	_hw_write_20kx
	mov	w0, #1
	bl	_mdelay
LBB0_19:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.20:
Lloh9:
	adrp	x8, _DAOIMAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DAOIMAP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldp	w9, w2, [x19, #24]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	bl	_hw_write_20kx
	str	xzr, [x19, #16]
LBB0_21:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_22:
	cbz	w8, LBB0_11
; %bb.23:
	mov	w9, #0
	tbz	w8, #0, LBB0_3
	b	LBB0_25
LBB0_24:
	and	w9, w9, #0xfffffffe
	str	w9, [x19]
	tbz	w8, #0, LBB0_3
LBB0_25:
	and	w8, w8, #0xfffffffe
	str	w8, [x19, #4]
	tbz	w9, #1, LBB0_4
LBB0_26:
	and	w9, w9, #0xfffffffd
	str	w9, [x19]
	tbz	w8, #1, LBB0_5
LBB0_27:
	and	w8, w8, #0xfffffffd
	str	w8, [x19, #4]
	tbz	w9, #2, LBB0_6
LBB0_28:
	and	w9, w9, #0xfffffffb
	str	w9, [x19]
	tbz	w8, #2, LBB0_7
LBB0_29:
	and	w8, w8, #0xfffffffb
	str	w8, [x19, #4]
	tbz	w9, #3, LBB0_8
LBB0_30:
	and	w9, w9, #0xfffffff7
	str	w9, [x19]
	tbnz	w8, #3, LBB0_9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I2SCTL,8,3                     ; @I2SCTL
	.comm	_SPOCTL,8,3                     ; @SPOCTL
	.comm	_SPICTL,8,3                     ; @SPICTL
	.comm	_DAOIMAP,8,3                    ; @DAOIMAP
	.no_dead_strip	_daio_mgr_commit_write
.subsections_via_symbols
