	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btmrvl_sdio_read_fw_status
_btmrvl_sdio_read_fw_status:            ## @btmrvl_sdio_read_fw_status
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movl	(%rdi), %edi
	movq	_CARD_FW_STATUS0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_sdio_readb
	cmpl	$0, -28(%rbp)
	jne	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_CARD_FW_STATUS1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_sdio_readb
	cmpl	$0, -28(%rbp)
	je	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	shll	$8, %eax
	orl	%r14d, %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_FW_STATUS0_REG,4,2        ## @CARD_FW_STATUS0_REG
	.comm	_CARD_FW_STATUS1_REG,4,2        ## @CARD_FW_STATUS1_REG
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_btmrvl_sdio_read_fw_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btmrvl_sdio_read_fw_status
_btmrvl_sdio_read_fw_status:            ; @btmrvl_sdio_read_fw_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	str	wzr, [x1]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CARD_FW_STATUS0_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARD_FW_STATUS0_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sdio_readb
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _CARD_FW_STATUS1_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARD_FW_STATUS1_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sdio_readb
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x8, x0
	mov	w0, #0
	orr	w8, w20, w8, lsl #8
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_FW_STATUS0_REG,4,2        ; @CARD_FW_STATUS0_REG
	.comm	_CARD_FW_STATUS1_REG,4,2        ; @CARD_FW_STATUS1_REG
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_btmrvl_sdio_read_fw_status
.subsections_via_symbols
