	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phase28_spi_write
_phase28_spi_write:                     ## @phase28_spi_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	%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	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_snd_ice1712_gpio_read
	movq	_PHASE28_WM_RW@GOTPCREL(%rip), %r12
	movq	_PHASE28_SPI_MOSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r12), %esi
	movl	%eax, %r14d
	movq	_PHASE28_SPI_CLK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PHASE28_WM_CS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	movq	%r15, %rdi
	callq	_snd_ice1712_gpio_set_mask
	orl	(%r12), %r14d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	notl	%ebx
	andl	%r14d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	testl	%r13d, %r13d
	jle	LBB0_1
## %bb.2:
	incl	%r13d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PHASE28_SPI_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	notl	%r14d
	andl	%ebx, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	leal	-2(%r13), %eax
	movzbl	%al, %eax
	movq	_PHASE28_SPI_MOSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%r14d, %ecx
	notl	%ebx
	andl	%r14d, %ebx
	movq	_PHASE28_SPI_CLK@GOTPCREL(%rip), %r14
	btl	%eax, %r12d
	cmovbl	%ecx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	orl	(%r14), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_PHASE28_SPI_CLK@GOTPCREL(%rip), %r14
LBB0_4:
	movq	%r14, %r12
	movl	(%r14), %r14d
	notl	%r14d
	andl	%ebx, %r14d
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	orl	(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHASE28_WM_RW,4,2              ## @PHASE28_WM_RW
	.comm	_PHASE28_SPI_MOSI,4,2           ## @PHASE28_SPI_MOSI
	.comm	_PHASE28_SPI_CLK,4,2            ## @PHASE28_SPI_CLK
	.comm	_PHASE28_WM_CS,4,2              ## @PHASE28_WM_CS
	.no_dead_strip	_phase28_spi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phase28_spi_write
_phase28_spi_write:                     ; @phase28_spi_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_snd_ice1712_gpio_read
	mov	x22, x0
Lloh0:
	adrp	x26, _PHASE28_WM_RW@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PHASE28_WM_RW@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PHASE28_SPI_MOSI@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PHASE28_SPI_MOSI@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh4:
	adrp	x24, _PHASE28_SPI_CLK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PHASE28_SPI_CLK@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _PHASE28_WM_CS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHASE28_WM_CS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mvn	w1, w8
	mov	x0, x19
	bl	_snd_ice1712_gpio_set_mask
	ldr	w8, [x26]
	orr	w8, w8, w22
	bic	w22, w8, w20
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	add	w23, w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w23, #2
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x25]
	orr	w9, w8, w22
	bic	w8, w22, w8
	lsr	w10, w21, w26
	tst	w10, #0x1
	csel	w22, w8, w9, eq
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_2
LBB0_3:
	ldr	w8, [x24]
	bic	w8, w22, w8
	orr	w20, w8, w20
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x24]
	orr	w1, w8, w20
	mov	x0, x19
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PHASE28_WM_RW,4,2              ; @PHASE28_WM_RW
	.comm	_PHASE28_SPI_MOSI,4,2           ; @PHASE28_SPI_MOSI
	.comm	_PHASE28_SPI_CLK,4,2            ; @PHASE28_SPI_CLK
	.comm	_PHASE28_WM_CS,4,2              ; @PHASE28_WM_CS
	.no_dead_strip	_phase28_spi_write
.subsections_via_symbols
