	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sdhci_msm_check_write
___sdhci_msm_check_write:               ## @__sdhci_msm_check_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	xorl	%r14d, %r14d
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_20
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	%r15d, (%rax)
	jmp	LBB0_20
LBB0_3:
	cmpl	$0, (%r12)
	je	LBB0_20
## %bb.4:
	movq	_SDHCI_RESET_ALL@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_5
	jmp	LBB0_20
LBB0_6:
	testl	%r15d, %r15d
	jne	LBB0_16
LBB0_5:
	movq	_REQ_BUS_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_8:
	movq	_SDHCI_CTRL_VDD_180@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_17
## %bb.9:
	movq	_REQ_IO_HIGH@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_10:
	cmpl	$0, 16(%rax)
	je	LBB0_20
## %bb.11:
	movq	_SDHCI_TRNS_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.12:
	movl	%r15d, %edi
	callq	_SDHCI_GET_CMD
	movq	_MMC_SEND_TUNING_BLOCK_HS200@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	movl	%r15d, %edi
	callq	_SDHCI_GET_CMD
	movq	_MMC_SEND_TUNING_BLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
LBB0_14:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
LBB0_15:
	callq	_sdhci_msm_set_cdr
	jmp	LBB0_20
LBB0_16:
	movq	_REQ_BUS_ON@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_17:
	movq	_REQ_IO_LOW@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.19:
	movq	$0, 8(%rax)
	xorl	%eax, %eax
	callq	_mb
	movl	%ebx, %r14d
LBB0_20:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r12, %rdi
	movl	$1, %esi
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_SDHCI_CTRL_VDD_180,4,2         ## @SDHCI_CTRL_VDD_180
	.comm	_REQ_IO_LOW,4,2                 ## @REQ_IO_LOW
	.comm	_REQ_IO_HIGH,4,2                ## @REQ_IO_HIGH
	.comm	_SDHCI_RESET_ALL,4,2            ## @SDHCI_RESET_ALL
	.comm	_REQ_BUS_OFF,4,2                ## @REQ_BUS_OFF
	.comm	_REQ_BUS_ON,4,2                 ## @REQ_BUS_ON
	.comm	_SDHCI_TRNS_READ,4,2            ## @SDHCI_TRNS_READ
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,4,2 ## @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_MMC_SEND_TUNING_BLOCK,4,2      ## @MMC_SEND_TUNING_BLOCK
	.no_dead_strip	___sdhci_msm_check_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sdhci_msm_check_write
___sdhci_msm_check_write:               ; @__sdhci_msm_check_write
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_15
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w20, #0
	str	w19, [x0]
	b	LBB0_16
LBB0_3:
	ldr	w8, [x20]
	cbz	w8, LBB0_15
; %bb.4:
Lloh2:
	adrp	x8, _SDHCI_RESET_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_RESET_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_15
; %bb.5:
Lloh5:
	adrp	x8, _REQ_BUS_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQ_BUS_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	cbnz	w20, LBB0_8
	b	LBB0_16
LBB0_6:
Lloh8:
	adrp	x8, _REQ_BUS_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_BUS_OFF@GOTPAGEOFF]
Lloh10:
	adrp	x9, _REQ_BUS_ON@GOTPAGE
Lloh11:
	ldr	x9, [x9, _REQ_BUS_ON@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	cbnz	w20, LBB0_8
	b	LBB0_16
LBB0_7:
Lloh12:
	adrp	x8, _SDHCI_CTRL_VDD_180@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_CTRL_VDD_180@GOTPAGEOFF]
Lloh14:
	adrp	x9, _REQ_IO_LOW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REQ_IO_LOW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, _REQ_IO_HIGH@GOTPAGE
Lloh18:
	ldr	x10, [x10, _REQ_IO_HIGH@GOTPAGEOFF]
	tst	w8, w19
	csel	x8, x10, x9, eq
	ldr	w20, [x8]
	cbz	w20, LBB0_16
LBB0_8:
	str	xzr, [x0, #8]
	bl	_mb
	b	LBB0_16
LBB0_9:
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_15
; %bb.10:
	ldr	w8, [x0]
Lloh19:
	adrp	x9, _SDHCI_TRNS_READ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SDHCI_TRNS_READ@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_SDHCI_GET_CMD
Lloh22:
	adrp	x8, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMC_SEND_TUNING_BLOCK_HS200@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_SDHCI_GET_CMD
Lloh25:
	adrp	x8, _MMC_SEND_TUNING_BLOCK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMC_SEND_TUNING_BLOCK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_13:
	mov	x0, x20
	mov	w1, #0
LBB0_14:
	bl	_sdhci_msm_set_cdr
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	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
LBB0_17:
	mov	x0, x20
	mov	w1, #1
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_SDHCI_CTRL_VDD_180,4,2         ; @SDHCI_CTRL_VDD_180
	.comm	_REQ_IO_LOW,4,2                 ; @REQ_IO_LOW
	.comm	_REQ_IO_HIGH,4,2                ; @REQ_IO_HIGH
	.comm	_SDHCI_RESET_ALL,4,2            ; @SDHCI_RESET_ALL
	.comm	_REQ_BUS_OFF,4,2                ; @REQ_BUS_OFF
	.comm	_REQ_BUS_ON,4,2                 ; @REQ_BUS_ON
	.comm	_SDHCI_TRNS_READ,4,2            ; @SDHCI_TRNS_READ
	.comm	_MMC_SEND_TUNING_BLOCK_HS200,4,2 ; @MMC_SEND_TUNING_BLOCK_HS200
	.comm	_MMC_SEND_TUNING_BLOCK,4,2      ; @MMC_SEND_TUNING_BLOCK
	.no_dead_strip	___sdhci_msm_check_write
.subsections_via_symbols
