	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aureon_spi_write
_aureon_spi_write:                      ## @aureon_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
	subq	$24, %rsp
	.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, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_snd_ice1712_gpio_read
	movq	(%r15), %rdx
	movq	_VT1724_SUBDEVICE_PRODIGY71LT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_VT1724_SUBDEVICE_PRODIGY71XT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_2
## %bb.3:
	movq	_AUREON_WM_RW@GOTPCREL(%rip), %rcx
	movq	_AUREON_SPI_MOSI@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%rcx), %esi
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	_AUREON_WM_CS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_AUREON_CS8415_CS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	movq	%r15, %rdi
	movl	%eax, %ebx
	callq	_snd_ice1712_gpio_set_mask
	movl	%ebx, %ecx
	movq	_AUREON_WM_RW@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_2:
	movq	_PRODIGY_SPI_MOSI@GOTPCREL(%rip), %r14
	movq	_PRODIGY_SPI_CLK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r14), %esi
	movq	_PRODIGY_WM_CS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	movq	%r15, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_snd_ice1712_gpio_set_mask
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_4:
	movl	(%r12), %r12d
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	notl	%ebx
	andl	%ecx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	movl	%r12d, %eax
	notl	%r12d
	testl	%r13d, %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_7
## %bb.5:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	incl	%r13d
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	andl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	leal	-2(%r13), %eax
	movzbl	%al, %eax
	movl	%ebx, %ecx
	orl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	andl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	btl	%eax, %r14d
	cmovbl	%ecx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_6
LBB0_7:
	andl	%r12d, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VT1724_SUBDEVICE_PRODIGY71LT,8,3 ## @VT1724_SUBDEVICE_PRODIGY71LT
	.comm	_VT1724_SUBDEVICE_PRODIGY71XT,8,3 ## @VT1724_SUBDEVICE_PRODIGY71XT
	.comm	_PRODIGY_SPI_MOSI,4,2           ## @PRODIGY_SPI_MOSI
	.comm	_PRODIGY_SPI_CLK,4,2            ## @PRODIGY_SPI_CLK
	.comm	_PRODIGY_WM_CS,4,2              ## @PRODIGY_WM_CS
	.comm	_AUREON_WM_RW,4,2               ## @AUREON_WM_RW
	.comm	_AUREON_SPI_MOSI,4,2            ## @AUREON_SPI_MOSI
	.comm	_AUREON_SPI_CLK,4,2             ## @AUREON_SPI_CLK
	.comm	_AUREON_WM_CS,4,2               ## @AUREON_WM_CS
	.comm	_AUREON_CS8415_CS,4,2           ## @AUREON_CS8415_CS
	.no_dead_strip	_aureon_spi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aureon_spi_write
_aureon_spi_write:                      ; @aureon_spi_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_snd_ice1712_gpio_read
	mov	x23, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VT1724_SUBDEVICE_PRODIGY71LT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VT1724_SUBDEVICE_PRODIGY71LT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _VT1724_SUBDEVICE_PRODIGY71XT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VT1724_SUBDEVICE_PRODIGY71XT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x25, _PRODIGY_SPI_MOSI@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PRODIGY_SPI_MOSI@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh8:
	adrp	x24, _PRODIGY_SPI_CLK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PRODIGY_SPI_CLK@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _PRODIGY_WM_CS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRODIGY_WM_CS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mvn	w1, w8
	mov	x0, x19
	bl	_snd_ice1712_gpio_set_mask
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x26, _AUREON_WM_RW@GOTPAGE
Lloh14:
	ldr	x26, [x26, _AUREON_WM_RW@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh15:
	adrp	x25, _AUREON_SPI_MOSI@GOTPAGE
Lloh16:
	ldr	x25, [x25, _AUREON_SPI_MOSI@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh17:
	adrp	x24, _AUREON_SPI_CLK@GOTPAGE
Lloh18:
	ldr	x24, [x24, _AUREON_SPI_CLK@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _AUREON_WM_CS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AUREON_WM_CS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _AUREON_CS8415_CS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AUREON_CS8415_CS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mvn	w1, w8
	mov	x0, x19
	bl	_snd_ice1712_gpio_set_mask
	ldr	w8, [x26]
	orr	w23, w8, w23
LBB0_3:
	ldr	w24, [x24]
	ldr	w25, [x25]
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	bic	w23, w23, w20
	mov	x0, x19
	mov	x1, x23
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	mvn	w26, w24
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.4:
	mvn	w27, w25
	add	w28, w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w28, #2
	and	w22, w23, w26
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	orr	w8, w22, w25
	and	w9, w22, w27
	lsr	w10, w21, w20
	tst	w10, #0x1
	csel	w22, w9, w8, eq
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	orr	w23, w22, w24
	mov	x0, x19
	mov	x1, x23
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	sub	w28, w28, #1
	cmp	w28, #1
	b.hi	LBB0_5
LBB0_6:
	and	w8, w23, w26
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w20, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	orr	w1, w20, w24
	mov	x0, x19
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VT1724_SUBDEVICE_PRODIGY71LT,8,3 ; @VT1724_SUBDEVICE_PRODIGY71LT
	.comm	_VT1724_SUBDEVICE_PRODIGY71XT,8,3 ; @VT1724_SUBDEVICE_PRODIGY71XT
	.comm	_PRODIGY_SPI_MOSI,4,2           ; @PRODIGY_SPI_MOSI
	.comm	_PRODIGY_SPI_CLK,4,2            ; @PRODIGY_SPI_CLK
	.comm	_PRODIGY_WM_CS,4,2              ; @PRODIGY_WM_CS
	.comm	_AUREON_WM_RW,4,2               ; @AUREON_WM_RW
	.comm	_AUREON_SPI_MOSI,4,2            ; @AUREON_SPI_MOSI
	.comm	_AUREON_SPI_CLK,4,2             ; @AUREON_SPI_CLK
	.comm	_AUREON_WM_CS,4,2               ; @AUREON_WM_CS
	.comm	_AUREON_CS8415_CS,4,2           ; @AUREON_CS8415_CS
	.no_dead_strip	_aureon_spi_write
.subsections_via_symbols
