	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak4396_write
_ak4396_write:                          ## @ak4396_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	(%rdi), %r15
	movq	_OXYGEN_SPI_TRIGGER@GOTPCREL(%rip), %rax
	movq	_OXYGEN_SPI_DATA_LENGTH_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_OXYGEN_SPI_CLOCK_160@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%esi, %ebx
	leaq	_ak4396_write.codec_spi_map(%rip), %rax
	movl	(%rax,%rbx,4), %esi
	movq	_OXYGEN_SPI_CODEC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	movq	_OXYGEN_SPI_CEN_LATCH_CLOCK_HI@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_AK4396_WRITE@GOTPCREL(%rip), %rax
	movl	%r12d, %edx
	shll	$8, %edx
	orl	%r14d, %edx
	orl	(%rax), %edx
	callq	_oxygen_write_spi
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movslq	%r12d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ak4396_write.codec_spi_map
_ak4396_write.codec_spi_map:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4

	.comm	_OXYGEN_SPI_TRIGGER,4,2         ## @OXYGEN_SPI_TRIGGER
	.comm	_OXYGEN_SPI_DATA_LENGTH_2,4,2   ## @OXYGEN_SPI_DATA_LENGTH_2
	.comm	_OXYGEN_SPI_CLOCK_160,4,2       ## @OXYGEN_SPI_CLOCK_160
	.comm	_OXYGEN_SPI_CODEC_SHIFT,4,2     ## @OXYGEN_SPI_CODEC_SHIFT
	.comm	_OXYGEN_SPI_CEN_LATCH_CLOCK_HI,4,2 ## @OXYGEN_SPI_CEN_LATCH_CLOCK_HI
	.comm	_AK4396_WRITE,4,2               ## @AK4396_WRITE
	.no_dead_strip	_ak4396_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak4396_write
_ak4396_write:                          ; @ak4396_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _OXYGEN_SPI_TRIGGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OXYGEN_SPI_TRIGGER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OXYGEN_SPI_DATA_LENGTH_2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OXYGEN_SPI_DATA_LENGTH_2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _OXYGEN_SPI_CLOCK_160@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OXYGEN_SPI_CLOCK_160@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ak4396_write.codec_spi_map@PAGE
Lloh10:
	add	x9, x9, _ak4396_write.codec_spi_map@PAGEOFF
	ldr	w9, [x9, w1, uxtw #2]
Lloh11:
	adrp	x10, _OXYGEN_SPI_CODEC_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _OXYGEN_SPI_CODEC_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _OXYGEN_SPI_CEN_LATCH_CLOCK_HI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OXYGEN_SPI_CEN_LATCH_CLOCK_HI@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh17:
	adrp	x8, _AK4396_WRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AK4396_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w9, w3, w2, lsl #8
	orr	w2, w9, w8
	bl	_oxygen_write_spi
	ldr	x8, [x22]
	ldr	x8, [x8, w21, uxtw #3]
	str	w19, [x8, w20, sxtw #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ak4396_write.codec_spi_map
_ak4396_write.codec_spi_map:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	4                               ; 0x4

	.comm	_OXYGEN_SPI_TRIGGER,4,2         ; @OXYGEN_SPI_TRIGGER
	.comm	_OXYGEN_SPI_DATA_LENGTH_2,4,2   ; @OXYGEN_SPI_DATA_LENGTH_2
	.comm	_OXYGEN_SPI_CLOCK_160,4,2       ; @OXYGEN_SPI_CLOCK_160
	.comm	_OXYGEN_SPI_CODEC_SHIFT,4,2     ; @OXYGEN_SPI_CODEC_SHIFT
	.comm	_OXYGEN_SPI_CEN_LATCH_CLOCK_HI,4,2 ; @OXYGEN_SPI_CEN_LATCH_CLOCK_HI
	.comm	_AK4396_WRITE,4,2               ; @AK4396_WRITE
	.no_dead_strip	_ak4396_write
.subsections_via_symbols
