	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_spi_init
_do_spi_init:                           ## @do_spi_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AR71XX_SPI_IOC_CS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AR71XX_SPI_IOC_CS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	orl	%ecx, %eax
	movq	_SPI_CS_HIGH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdi)
	jne	LBB0_2
## %bb.1:
	cmpl	$2, 4(%rdi)
	cmovel	%edx, %ecx
	xorl	%ecx, %eax
LBB0_2:
	movq	_spi_clk_low@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR71XX_SPI_IOC_CS0,4,2         ## @AR71XX_SPI_IOC_CS0
	.comm	_AR71XX_SPI_IOC_CS1,4,2         ## @AR71XX_SPI_IOC_CS1
	.comm	_SPI_CS_HIGH,4,2                ## @SPI_CS_HIGH
	.comm	_spi_clk_low,4,2                ## @spi_clk_low
	.no_dead_strip	_do_spi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_spi_init
_do_spi_init:                           ; @do_spi_init
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AR71XX_SPI_IOC_CS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR71XX_SPI_IOC_CS0@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _AR71XX_SPI_IOC_CS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR71XX_SPI_IOC_CS1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	orr	w8, w10, w9
	ldr	w11, [x0]
Lloh6:
	adrp	x12, _SPI_CS_HIGH@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SPI_CS_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w11
	b.ne	LBB0_2
; %bb.1:
	ldr	w11, [x0, #4]
	cmp	w11, #2
	csel	w9, w10, w9, eq
	eor	w8, w9, w8
LBB0_2:
Lloh9:
	adrp	x9, _spi_clk_low@GOTPAGE
Lloh10:
	ldr	x9, [x9, _spi_clk_low@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AR71XX_SPI_IOC_CS0,4,2         ; @AR71XX_SPI_IOC_CS0
	.comm	_AR71XX_SPI_IOC_CS1,4,2         ; @AR71XX_SPI_IOC_CS1
	.comm	_SPI_CS_HIGH,4,2                ; @SPI_CS_HIGH
	.comm	_spi_clk_low,4,2                ; @spi_clk_low
	.no_dead_strip	_do_spi_init
.subsections_via_symbols
