	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbsd_request
_wbsd_request:                          ## @wbsd_request
	.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
	movq	%rsi, %r15
	callq	_mmc_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
	callq	_BUG_ON
	movq	(%r15), %r12
	movq	%r15, 24(%rbx)
	movq	_WBSD_FCARD_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.3:
	movl	(%r12), %eax
	cmpq	$56, %rax
	ja	LBB0_5
## %bb.4:
	movabsq	$74313793224968192, %rcx        ## imm = 0x10804004F160800
	btq	%rax, %rcx
	jae	LBB0_5
## %bb.8:
	movq	%rbx, %rdi
	callq	_wbsd_prepare_data
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wbsd_send_command
	cmpq	$0, 8(%r12)
	je	LBB0_7
## %bb.10:
	cmpl	$0, 4(%r12)
	jne	LBB0_7
## %bb.11:
	cmpl	$-1, 4(%rbx)
	jne	LBB0_13
## %bb.12:
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 4(%r12)
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wbsd_request_end
LBB0_13:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_5:
	movl	16(%rbx), %edi
	callq	_mmc_hostname
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WBSD_FCARD_PRESENT,4,2         ## @WBSD_FCARD_PRESENT
	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Data command %d is not supported by this controller\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wbsd_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbsd_request
_wbsd_request:                          ; @wbsd_request
	.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	x20, x1
	bl	_mmc_priv
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_BUG_ON
	ldr	x22, [x20]
	str	x20, [x21, #24]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _WBSD_FCARD_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WBSD_FCARD_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #56
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #2048
	movk	x9, #20246, lsl #16
	movk	x9, #1024, lsl #32
	movk	x9, #264, lsl #48
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_12
; %bb.3:
	mov	x0, x21
	bl	_wbsd_prepare_data
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_10
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_wbsd_send_command
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_10
; %bb.6:
	ldr	w8, [x21, #4]
	cmn	w8, #1
	b.ne	LBB0_11
; %bb.7:
	add	x0, x21, #12
	bl	_tasklet_schedule
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x22, #4]
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	bl	_wbsd_request_end
LBB0_11:
	mov	x0, x19
	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
	b	_spin_unlock_bh
LBB0_12:
	ldr	w0, [x21, #16]
	bl	_mmc_hostname
	mov	x1, x0
	ldr	w2, [x22]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WBSD_FCARD_PRESENT,4,2         ; @WBSD_FCARD_PRESENT
	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Data command %d is not supported by this controller\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wbsd_request
.subsections_via_symbols
