	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4245_write
_cs4245_write:                          ## @cs4245_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_OXYGEN_SPI_TRIGGER@GOTPCREL(%rip), %rcx
	movq	_OXYGEN_SPI_DATA_LENGTH_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	_OXYGEN_SPI_CLOCK_1280@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rdi), %r15
	movq	_OXYGEN_SPI_CEN_LATCH_CLOCK_HI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CS4245_SPI_ADDRESS@GOTPCREL(%rip), %rcx
	movq	_CS4245_SPI_WRITE@GOTPCREL(%rip), %rsi
	movl	%ebx, %edx
	shll	$8, %edx
	orl	%r14d, %edx
	orl	(%rcx), %edx
	orl	(%rsi), %edx
	movl	%eax, %esi
	callq	_oxygen_write_spi
	movq	(%r15), %rax
	movl	%ebx, %ecx
	movl	%r14d, (%rax,%rcx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_SPI_TRIGGER,4,2         ## @OXYGEN_SPI_TRIGGER
	.comm	_OXYGEN_SPI_DATA_LENGTH_3,4,2   ## @OXYGEN_SPI_DATA_LENGTH_3
	.comm	_OXYGEN_SPI_CLOCK_1280,4,2      ## @OXYGEN_SPI_CLOCK_1280
	.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	_CS4245_SPI_ADDRESS,4,2         ## @CS4245_SPI_ADDRESS
	.comm	_CS4245_SPI_WRITE,4,2           ## @CS4245_SPI_WRITE
	.no_dead_strip	_cs4245_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4245_write
_cs4245_write:                          ; @cs4245_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, x2
	mov	x20, x1
	ldr	x21, [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_3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OXYGEN_SPI_DATA_LENGTH_3@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _OXYGEN_SPI_CLOCK_1280@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OXYGEN_SPI_CLOCK_1280@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _OXYGEN_SPI_CEN_LATCH_CLOCK_HI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OXYGEN_SPI_CEN_LATCH_CLOCK_HI@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh12:
	adrp	x8, _CS4245_SPI_ADDRESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CS4245_SPI_ADDRESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CS4245_SPI_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CS4245_SPI_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w10, w2, w20, lsl #8
	orr	w8, w10, w8
	orr	w2, w8, w9
	bl	_oxygen_write_spi
	ldr	x8, [x21]
	str	w19, [x8, w20, uxtw #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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_SPI_TRIGGER,4,2         ; @OXYGEN_SPI_TRIGGER
	.comm	_OXYGEN_SPI_DATA_LENGTH_3,4,2   ; @OXYGEN_SPI_DATA_LENGTH_3
	.comm	_OXYGEN_SPI_CLOCK_1280,4,2      ; @OXYGEN_SPI_CLOCK_1280
	.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	_CS4245_SPI_ADDRESS,4,2         ; @CS4245_SPI_ADDRESS
	.comm	_CS4245_SPI_WRITE,4,2           ; @CS4245_SPI_WRITE
	.no_dead_strip	_cs4245_write
.subsections_via_symbols
