	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_spi_initsequence
_mmc_spi_initsequence:                  ## @mmc_spi_initsequence
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_r1b_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmc_spi_wait_unbusy
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_mmc_spi_readbytes
	movq	_SPI_CS_HIGH@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	(%rbx), %rdi
	orl	%eax, 4(%rdi)
	callq	_spi_setup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movl	(%r14), %eax
	notl	%eax
	movq	(%rbx), %rcx
	andl	%eax, 4(%rcx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	movl	$18, %esi
	callq	_mmc_spi_readbytes
	movl	(%r14), %eax
	notl	%eax
	movq	(%rbx), %rdi
	andl	%eax, 4(%rdi)
	callq	_spi_setup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r1b_timeout,4,2                ## @r1b_timeout
	.comm	_SPI_CS_HIGH,4,2                ## @SPI_CS_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't change chip-select polarity\n"

L_.str.1:                               ## @.str.1
	.asciz	"can't restore chip-select polarity\n"

	.no_dead_strip	_mmc_spi_initsequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_spi_initsequence
_mmc_spi_initsequence:                  ; @mmc_spi_initsequence
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _r1b_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r1b_timeout@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mmc_spi_wait_unbusy
	mov	x0, x19
	mov	w1, #10
	bl	_mmc_spi_readbytes
Lloh3:
	adrp	x20, _SPI_CS_HIGH@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SPI_CS_HIGH@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	x0, [x19]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	bl	_spi_setup
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x20]
	ldr	x9, [x19]
	ldr	w10, [x9, #4]
	bic	w8, w10, w8
	str	w8, [x9, #4]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	mov	w1, #18
	bl	_mmc_spi_readbytes
	ldr	w8, [x20]
	ldr	x0, [x19]
	ldr	w9, [x0, #4]
	bic	w8, w9, w8
	str	w8, [x0, #4]
	bl	_spi_setup
	cbz	x0, LBB0_2
; %bb.4:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_r1b_timeout,4,2                ; @r1b_timeout
	.comm	_SPI_CS_HIGH,4,2                ; @SPI_CS_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't change chip-select polarity\n"

l_.str.1:                               ; @.str.1
	.asciz	"can't restore chip-select polarity\n"

	.no_dead_strip	_mmc_spi_initsequence
.subsections_via_symbols
