	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_write
_spi_write:                             ## @spi_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PONTIS_CS_CS@GOTPCREL(%rip), %r13
	movq	_PONTIS_CS_WDATA@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	(%r13), %eax
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_PONTIS_CS_CLK@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movl	%eax, %esi
	callq	_snd_ice1712_gpio_set_dir
	movl	(%r14), %esi
	orl	(%r13), %esi
	orl	(%r15), %esi
	notl	%esi
	movq	%rbx, %rdi
	callq	_snd_ice1712_gpio_set_mask
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_set_gpio_bit
	andl	$-2, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_spi_send_byte
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_spi_send_byte
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_spi_send_byte
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_set_gpio_bit
	movl	$1, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_snd_ice1712_gpio_set_mask
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ice1712_gpio_set_dir       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PONTIS_CS_CS,4,2               ## @PONTIS_CS_CS
	.comm	_PONTIS_CS_WDATA,4,2            ## @PONTIS_CS_WDATA
	.comm	_PONTIS_CS_CLK,4,2              ## @PONTIS_CS_CLK
	.no_dead_strip	_spi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_write
_spi_write:                             ; @spi_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _PONTIS_CS_CS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PONTIS_CS_CS@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _PONTIS_CS_WDATA@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PONTIS_CS_WDATA@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh4:
	adrp	x25, _PONTIS_CS_CLK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PONTIS_CS_CLK@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w1, w8, w9
	bl	_snd_ice1712_gpio_set_dir
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	mvn	w1, w8
	mov	x0, x19
	bl	_snd_ice1712_gpio_set_mask
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_set_gpio_bit
	and	w1, w22, #0xfffffffe
	mov	x0, x19
	bl	_spi_send_byte
	mov	x0, x19
	mov	x1, x21
	bl	_spi_send_byte
	mov	x0, x19
	mov	x1, x20
	bl	_spi_send_byte
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_set_gpio_bit
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x19]
	mov	x0, x19
	bl	_snd_ice1712_gpio_set_mask
	ldr	w1, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_snd_ice1712_gpio_set_dir
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PONTIS_CS_CS,4,2               ; @PONTIS_CS_CS
	.comm	_PONTIS_CS_WDATA,4,2            ; @PONTIS_CS_WDATA
	.comm	_PONTIS_CS_CLK,4,2              ; @PONTIS_CS_CLK
	.no_dead_strip	_spi_write
.subsections_via_symbols
