	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aureon_pca9554_write
_aureon_pca9554_write:                  ## @aureon_pca9554_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	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_PCA9554_DEV@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	callq	_snd_ice1712_gpio_read
	movq	_AUREON_SPI_MOSI@GOTPCREL(%rip), %rcx
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_AUREON_WM_RW@GOTPCREL(%rip), %r15
	orl	(%r15), %esi
	movl	%eax, %r13d
	movq	_AUREON_WM_CS@GOTPCREL(%rip), %r14
	orl	(%r14), %esi
	movq	_AUREON_CS8415_CS@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	notl	%esi
	movq	%r12, %rdi
	callq	_snd_ice1712_gpio_set_mask
	orl	(%r15), %r13d
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %r15
	orl	(%rbx), %r13d
	orl	(%r14), %r13d
	movq	_AUREON_SPI_MOSI@GOTPCREL(%rip), %r14
	movl	(%r15), %ebx
	orl	(%r14), %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$50, %edi
	callq	_udelay
	orl	(%r15), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$50, %edi
	callq	_udelay
	orl	(%r14), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$100, %edi
	callq	_udelay
	movl	(%r14), %r13d
	notl	%r13d
	andl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$50, %edi
	callq	_udelay
	movl	(%r15), %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$100, %edi
	callq	_udelay
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$2, %edx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	cmpl	$1, %edx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ecx
	testl	%edx, %edx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movb	%cl, -42(%rbp)                  ## 1-byte Spill
	movzbl	%cl, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$7, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %r15
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	notl	%r13d
	andl	%ebx, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	movq	_AUREON_SPI_MOSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	orl	%r13d, %eax
	notl	%ebx
	andl	%r13d, %ebx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	btl	%r14d, %ecx
	cmovbl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	orl	(%r12), %ebx
	movq	%r15, %r12
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	addl	$-1, %r14d
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_AUREON_SPI_CLK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	movl	%ebx, %r13d
	orl	(%r15), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	movl	(%r15), %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movb	-42(%rbp), %al                  ## 1-byte Reload
                                        ## kill: def $al killed $al def $eax
	cmpl	$3, %edx
	movq	_AUREON_SPI_MOSI@GOTPCREL(%rip), %r14
	jne	LBB0_1
## %bb.9:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	movl	(%r14), %r13d
	notl	%r13d
	andl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$40, %edi
	callq	_udelay
	orl	(%r15), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$50, %edi
	callq	_udelay
	orl	(%r14), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_snd_ice1712_gpio_write
	movl	$100, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCA9554_DEV,1,0                ## @PCA9554_DEV
	.comm	_AUREON_SPI_MOSI,4,2            ## @AUREON_SPI_MOSI
	.comm	_AUREON_SPI_CLK,4,2             ## @AUREON_SPI_CLK
	.comm	_AUREON_WM_RW,4,2               ## @AUREON_WM_RW
	.comm	_AUREON_WM_CS,4,2               ## @AUREON_WM_CS
	.comm	_AUREON_CS8415_CS,4,2           ## @AUREON_CS8415_CS
	.no_dead_strip	_aureon_pca9554_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aureon_pca9554_write
_aureon_pca9554_write:                  ; @aureon_pca9554_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
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PCA9554_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCA9554_DEV@GOTPAGEOFF]
	ldrb	w25, [x8]
	bl	_snd_ice1712_gpio_read
	mov	x22, x0
Lloh2:
	adrp	x23, _AUREON_SPI_MOSI@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AUREON_SPI_MOSI@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _AUREON_SPI_CLK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AUREON_SPI_CLK@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh6:
	adrp	x20, _AUREON_WM_RW@GOTPAGE
Lloh7:
	ldr	x20, [x20, _AUREON_WM_RW@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
Lloh8:
	adrp	x26, _AUREON_WM_CS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _AUREON_WM_CS@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
Lloh10:
	adrp	x27, _AUREON_CS8415_CS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _AUREON_CS8415_CS@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w9
	mvn	w1, w8
	mov	x0, x19
	bl	_snd_ice1712_gpio_set_mask
	ldr	w8, [x20]
	ldr	w9, [x27]
	ldr	w10, [x26]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	bic	w22, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #50
	bl	_udelay
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #50
	bl	_udelay
	ldr	w8, [x23]
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #100
	bl	_udelay
	ldr	w8, [x23]
	bic	w22, w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #50
	bl	_udelay
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #100
	bl	_udelay
	mov	w27, #0
	mov	w26, #0
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	cmp	w26, #0
	csel	w8, w27, w25, ne
	cmp	w26, #1
	csel	w8, w21, w8, eq
	cmp	w26, #2
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	csel	w27, w9, w8, eq
	and	w28, w27, #0xff
	mov	w20, #7
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	ldr	w8, [x23]
	orr	w9, w8, w22
	bic	w8, w22, w8
	lsr	w10, w28, w20
	tst	w10, #0x1
	csel	w22, w8, w9, eq
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	sub	w20, w20, #1
	cmn	w20, #1
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	ldr	w8, [x24]
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	add	w26, w26, #1
	cmp	w26, #3
	b.ne	LBB0_1
; %bb.4:
	ldr	w8, [x24]
	bic	w20, w22, w8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	ldr	w8, [x23]
	bic	w20, w20, w8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #40
	bl	_udelay
	ldr	w8, [x24]
	orr	w20, w8, w20
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ice1712_gpio_write
	mov	w0, #50
	bl	_udelay
	ldr	w8, [x23]
	orr	w1, w8, w20
	mov	x0, x19
	bl	_snd_ice1712_gpio_write
	mov	w0, #100
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCA9554_DEV,1,0                ; @PCA9554_DEV
	.comm	_AUREON_SPI_MOSI,4,2            ; @AUREON_SPI_MOSI
	.comm	_AUREON_SPI_CLK,4,2             ; @AUREON_SPI_CLK
	.comm	_AUREON_WM_RW,4,2               ; @AUREON_WM_RW
	.comm	_AUREON_WM_CS,4,2               ; @AUREON_WM_CS
	.comm	_AUREON_CS8415_CS,4,2           ; @AUREON_CS8415_CS
	.no_dead_strip	_aureon_pca9554_write
.subsections_via_symbols
