	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_send_bus_test
_mmc_send_bus_test:                     ## @mmc_send_bus_test
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	$0, -104(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	cmpl	$8, %ebx
	je	LBB0_4
## %bb.5:
	cmpl	$4, %ebx
	jne	LBB0_21
## %bb.6:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	_mmc_send_bus_test.testdata_4bit(%rip), %r12
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	_mmc_send_bus_test.testdata_8bit(%rip), %r12
LBB0_7:
	movq	_MMC_BUS_TEST_W@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_9:
	leaq	-112(%rbp), %rax
	movq	%rax, -120(%rbp)
	leaq	-88(%rbp), %rdi
	movq	%rdi, -128(%rbp)
	movq	_MMC_RSP_SPI_R1@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r15d, -112(%rbp)
	movq	_MMC_CMD_ADTC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	$0, -96(%rbp)
	movl	%ecx, -108(%rbp)
	movl	%ebx, -88(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -84(%rbp)
	movq	_MMC_BUS_TEST_R@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_10
## %bb.11:
	movq	%r13, %rsi
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_21:
	movq	%r12, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_pr_err
	movq	%r14, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_10:
	movq	%r13, %rsi
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-56(%rbp), %r13
	movq	%r13, -72(%rbp)
	callq	_mmc_set_data_timeout
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_sg_init_one
	leaq	-128(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mmc_wait_for_req
	xorl	%r13d, %r13d
	movq	_MMC_BUS_TEST_R@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_18
## %bb.13:
	shrl	$2, %ebx
	andl	$63, %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rax,4), %ecx
	xorl	(%r12,%rax,4), %ecx
	cmpl	$255, %ecx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_14
## %bb.16:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_17:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_18:
	movq	%r14, %rdi
	callq	_kfree
	movl	-104(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	cmovnel	%eax, %r13d
	movl	%r13d, %eax
LBB0_20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @mmc_send_bus_test.testdata_8bit
_mmc_send_bus_test.testdata_8bit:
	.long	85                              ## 0x55
	.long	170                             ## 0xaa
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	4                               ## @mmc_send_bus_test.testdata_4bit
_mmc_send_bus_test.testdata_4bit:
	.long	90                              ## 0x5a
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Invalid bus_width %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_BUS_TEST_W,4,2             ## @MMC_BUS_TEST_W
	.comm	_MMC_RSP_SPI_R1,4,2             ## @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ## @MMC_CMD_ADTC
	.comm	_MMC_BUS_TEST_R,4,2             ## @MMC_BUS_TEST_R
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mmc_send_bus_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_send_bus_test
_mmc_send_bus_test:                     ; @mmc_send_bus_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	xzr, [sp, #48]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x3
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	cmp	w20, #8
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #4
	b.ne	LBB0_13
; %bb.3:
Lloh3:
	adrp	x21, _mmc_send_bus_test.testdata_4bit@PAGE
Lloh4:
	add	x21, x21, _mmc_send_bus_test.testdata_4bit@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
Lloh7:
	adrp	x21, _mmc_send_bus_test.testdata_8bit@PAGE
Lloh8:
	add	x21, x21, _mmc_send_bus_test.testdata_8bit@PAGEOFF
LBB0_6:
Lloh9:
	adrp	x8, _MMC_BUS_TEST_W@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_BUS_TEST_W@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
LBB0_8:
	add	x8, sp, #40
	add	x9, sp, #8
	stp	x9, x8, [sp, #64]
	str	xzr, [sp, #56]
Lloh12:
	adrp	x8, _MMC_RSP_SPI_R1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _MMC_CMD_ADTC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w22, w8, [sp, #40]
	str	w20, [sp, #8]
Lloh21:
	adrp	x25, _MMC_BUS_TEST_R@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MMC_BUS_TEST_R@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh23:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh25:
	adrp	x10, _MMC_DATA_WRITE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _MMC_DATA_WRITE@GOTPAGEOFF]
	cmp	w8, w22
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	x8, sp
	str	x8, [sp, #24]
	movi.2s	v0, #1
	stur	d0, [sp, #12]
	add	x0, sp, #8
	mov	x1, x24
	bl	_mmc_set_data_timeout
	mov	x0, sp
	mov	x1, x19
	mov	x2, x20
	bl	_sg_init_one
	add	x1, sp, #64
	mov	x0, x23
	bl	_mmc_wait_for_req
	ldr	w8, [x25]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.9:
	ubfx	w8, w20, #2, #6
	mov	x9, x19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x21]
	ldr	w11, [x9]
	eor	w10, w11, w10
	cmp	w10, #255
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #4
	add	x21, x21, #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_12:
	mov	w20, #0
	b	LBB0_16
LBB0_13:
	mov	x0, x23
	bl	_mmc_hostname
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_err
	mov	x0, x19
	bl	_kfree
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_15:
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_16:
	mov	x0, x19
	bl	_kfree
	ldr	w0, [sp, #48]
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w8, [sp, #20]
	cmp	w8, #0
	csel	w0, w20, w8, eq
LBB0_18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @mmc_send_bus_test.testdata_8bit
_mmc_send_bus_test.testdata_8bit:
	.long	85                              ; 0x55
	.long	170                             ; 0xaa
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @mmc_send_bus_test.testdata_4bit
_mmc_send_bus_test.testdata_4bit:
	.long	90                              ; 0x5a
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Invalid bus_width %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_BUS_TEST_W,4,2             ; @MMC_BUS_TEST_W
	.comm	_MMC_RSP_SPI_R1,4,2             ; @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ; @MMC_CMD_ADTC
	.comm	_MMC_BUS_TEST_R,4,2             ; @MMC_BUS_TEST_R
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mmc_send_bus_test
.subsections_via_symbols
