	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aureon_spi_read
_aureon_spi_read:                       ## @aureon_spi_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_snd_ice1712_gpio_read
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	%eax, %r15d
	movq	_AUREON_CS8415_CS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_AUREON_WM_CS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_ice1712_gpio_write
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	notl	%r12d
	andl	%r15d, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	incl	%ebx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movzbl	%al, %eax
	movq	_AUREON_SPI_MOSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%r15d, %ecx
	orl	%r12d, %ecx
	notl	%r15d
	andl	%r12d, %r15d
	btl	%eax, %r13d
	cmovbl	%ecx, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %r12
	orl	(%r12), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %r12d
	notl	%r12d
	andl	%r15d, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_2
LBB0_3:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-8, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_snd_ice1712_gpio_read
	movl	%eax, %ebx
	movl	%r15d, %eax
	addb	%r15b, %al
	movq	_AUREON_SPI_MISO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	setne	%r15b
	orb	%al, %r15b
	movl	$1, %edi
	callq	_udelay
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$1, %edi
	callq	_udelay
	incl	%r13d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	%r15b, (%rax,%rcx)
	movq	%rcx, %rax
	incq	%rax
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_8:
	orl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ice1712_gpio_write         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUREON_SPI_CLK,4,2             ## @AUREON_SPI_CLK
	.comm	_AUREON_CS8415_CS,4,2           ## @AUREON_CS8415_CS
	.comm	_AUREON_WM_CS,4,2               ## @AUREON_WM_CS
	.comm	_AUREON_SPI_MOSI,4,2            ## @AUREON_SPI_MOSI
	.comm	_AUREON_SPI_MISO,4,2            ## @AUREON_SPI_MISO
	.no_dead_strip	_aureon_spi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aureon_spi_read
_aureon_spi_read:                       ; @aureon_spi_read
	.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, x5
	mov	x21, x4
	mov	x25, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_snd_ice1712_gpio_read
Lloh0:
	adrp	x26, _AUREON_SPI_CLK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AUREON_SPI_CLK@GOTPAGEOFF]
	ldr	w8, [x26]
	bic	w8, w0, w8
Lloh2:
	adrp	x9, _AUREON_CS8415_CS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AUREON_CS8415_CS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh5:
	adrp	x9, _AUREON_WM_CS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUREON_WM_CS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w24, w8, w9
	mov	x0, x19
	mov	x1, x24
	bl	_snd_ice1712_gpio_write
	bic	w24, w24, w20
	mov	x0, x19
	mov	x1, x24
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.1:
	add	w25, w25, #1
Lloh8:
	adrp	x27, _AUREON_SPI_MOSI@GOTPAGE
Lloh9:
	ldr	x27, [x27, _AUREON_SPI_MOSI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w25, #2
	ldr	w9, [x27]
	orr	w10, w9, w24
	bic	w9, w24, w9
	lsr	w8, w23, w8
	tst	w8, #0x1
	csel	w24, w9, w10, eq
	mov	x0, x19
	mov	x1, x24
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x26]
	orr	w24, w8, w24
	mov	x0, x19
	mov	x1, x24
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x26]
	bic	w24, w24, w8
	mov	x0, x19
	mov	x1, x24
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_2
LBB0_3:
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.4:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x23, #0
	mov	w25, w22
Lloh10:
	adrp	x27, _AUREON_SPI_MISO@GOTPAGE
Lloh11:
	ldr	x27, [x27, _AUREON_SPI_MISO@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	w20, #0
	mov	w28, #-8
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x20
	mov	x0, x19
	bl	_snd_ice1712_gpio_read
	mov	x22, x0
	ldr	w8, [x27]
	tst	w8, w0
	cset	w20, ne
	bfi	w20, w24, #1, #31
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x26]
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x26]
	bic	w24, w22, w8
	mov	x0, x19
	mov	x1, x24
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
	bl	_udelay
	adds	w28, w28, #1
	b.lo	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w20, [x21, x23]
	add	x23, x23, #1
	cmp	x23, x25
	b.ne	LBB0_5
; %bb.8:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
LBB0_9:
	orr	w1, w24, w20
	mov	x0, x19
	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	_snd_ice1712_gpio_write
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AUREON_SPI_CLK,4,2             ; @AUREON_SPI_CLK
	.comm	_AUREON_CS8415_CS,4,2           ; @AUREON_CS8415_CS
	.comm	_AUREON_WM_CS,4,2               ; @AUREON_WM_CS
	.comm	_AUREON_SPI_MOSI,4,2            ; @AUREON_SPI_MOSI
	.comm	_AUREON_SPI_MISO,4,2            ; @AUREON_SPI_MISO
	.no_dead_strip	_aureon_spi_read
.subsections_via_symbols
