	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_set_mode
_stfsm_set_mode:                        ## @stfsm_set_mode
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_SPI_STA_MODE_CHANGE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.1:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.2:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.3:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.4:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.5:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.6:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.7:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.8:
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testb	$1, %al
	jne	LBB0_10
## %bb.9:
	movl	$1, %edi
	callq	_udelay
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	movq	_SPI_MODESELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_STA_MODE_CHANGE,8,3        ## @SPI_STA_MODE_CHANGE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SPI_MODESELECT,8,3             ## @SPI_MODESELECT
	.no_dead_strip	_stfsm_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_set_mode
_stfsm_set_mode:                        ; @stfsm_set_mode
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _SPI_STA_MODE_CHANGE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SPI_STA_MODE_CHANGE@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.1:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.2:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.3:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.4:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.5:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.6:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.7:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.8:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #0, LBB0_10
; %bb.9:
	mov	w0, #1
	bl	_udelay
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _SPI_MODESELECT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPI_MODESELECT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_STA_MODE_CHANGE,8,3        ; @SPI_STA_MODE_CHANGE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SPI_MODESELECT,8,3             ; @SPI_MODESELECT
	.no_dead_strip	_stfsm_set_mode
.subsections_via_symbols
