	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oxygen_write_spi               ## -- Begin function oxygen_write_spi
	.p2align	4, 0x90
_oxygen_write_spi:                      ## @oxygen_write_spi
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_OXYGEN_SPI_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_oxygen_read8
	movq	_OXYGEN_SPI_BUSY@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.1:
	movl	$-9, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_oxygen_read8
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r14), %eax
	testl	%r14d, %r14d
	movl	%eax, %r14d
	jne	LBB0_2
LBB0_4:
	movq	_OXYGEN_SPI_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_oxygen_write8
	movq	_OXYGEN_SPI_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	shrl	$8, %edx
	movq	%rbx, %rdi
	callq	_oxygen_write8
	movq	_OXYGEN_SPI_DATA_LENGTH_3@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_OXYGEN_SPI_DATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$16, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_oxygen_write8
LBB0_6:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_oxygen_write8                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_SPI_CONTROL,4,2         ## @OXYGEN_SPI_CONTROL
	.comm	_OXYGEN_SPI_BUSY,4,2            ## @OXYGEN_SPI_BUSY
	.comm	_OXYGEN_SPI_DATA1,4,2           ## @OXYGEN_SPI_DATA1
	.comm	_OXYGEN_SPI_DATA2,4,2           ## @OXYGEN_SPI_DATA2
	.comm	_OXYGEN_SPI_DATA_LENGTH_3,4,2   ## @OXYGEN_SPI_DATA_LENGTH_3
	.comm	_OXYGEN_SPI_DATA3,4,2           ## @OXYGEN_SPI_DATA3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oxygen_write_spi               ; -- Begin function oxygen_write_spi
	.p2align	2
_oxygen_write_spi:                      ; @oxygen_write_spi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _OXYGEN_SPI_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OXYGEN_SPI_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_oxygen_read8
Lloh2:
	adrp	x23, _OXYGEN_SPI_BUSY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OXYGEN_SPI_BUSY@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	w24, #-9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x20
	bl	_oxygen_read8
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w24, #0, #4, ne
	add	w24, w24, #1
	b.ne	LBB0_2
LBB0_3:
Lloh4:
	adrp	x8, _OXYGEN_SPI_DATA1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OXYGEN_SPI_DATA1@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_oxygen_write8
Lloh7:
	adrp	x8, _OXYGEN_SPI_DATA2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OXYGEN_SPI_DATA2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	lsr	w2, w21, #8
	mov	x0, x20
	bl	_oxygen_write8
Lloh10:
	adrp	x8, _OXYGEN_SPI_DATA_LENGTH_3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OXYGEN_SPI_DATA_LENGTH_3@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _OXYGEN_SPI_DATA3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OXYGEN_SPI_DATA3@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	lsr	w2, w21, #16
	mov	x0, x20
	bl	_oxygen_write8
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_oxygen_write8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_SPI_CONTROL,4,2         ; @OXYGEN_SPI_CONTROL
	.comm	_OXYGEN_SPI_BUSY,4,2            ; @OXYGEN_SPI_BUSY
	.comm	_OXYGEN_SPI_DATA1,4,2           ; @OXYGEN_SPI_DATA1
	.comm	_OXYGEN_SPI_DATA2,4,2           ; @OXYGEN_SPI_DATA2
	.comm	_OXYGEN_SPI_DATA_LENGTH_3,4,2   ; @OXYGEN_SPI_DATA_LENGTH_3
	.comm	_OXYGEN_SPI_DATA3,4,2           ; @OXYGEN_SPI_DATA3
.subsections_via_symbols
