	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btmrvl_sdio_get_int_status
_btmrvl_sdio_get_int_status:            ## @btmrvl_sdio_get_int_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movl	$0, (%rsi)
	movl	(%rbx), %edi
	movq	_HOST_INTSTATUS_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	callq	_sdio_readb
	cmpl	$0, -44(%rbp)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_BT_ERR
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_BT_DBG
	movl	(%rbx), %edi
	movl	%r13d, %eax
	notl	%eax
	movq	_DN_LD_HOST_INT_STATUS@GOTPCREL(%rip), %rcx
	movq	_UP_LD_HOST_INT_STATUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	andl	%eax, %esi
	movl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	callq	_sdio_writeb
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movq	_DN_LD_HOST_INT_STATUS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.7:
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	callq	_BT_DBG
	jmp	LBB0_10
LBB0_9:
	movl	$1, (%r15)
LBB0_10:
	movq	_UP_LD_HOST_INT_STATUS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_btmrvl_sdio_card_to_host
LBB0_12:
	movl	%r13d, (%r14)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_INTSTATUS_REG,4,2         ## @HOST_INTSTATUS_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio_readb: read int status register failed"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"sdio_ireg = 0x%x"

	.comm	_DN_LD_HOST_INT_STATUS,4,2      ## @DN_LD_HOST_INT_STATUS
	.comm	_UP_LD_HOST_INT_STATUS,4,2      ## @UP_LD_HOST_INT_STATUS
L_.str.2:                               ## @.str.2
	.asciz	"sdio_writeb: clear int status register failed"

L_.str.3:                               ## @.str.3
	.asciz	"tx_done already received:  int_status=0x%x"

	.no_dead_strip	_btmrvl_sdio_get_int_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_get_int_status
_btmrvl_sdio_get_int_status:            ; @btmrvl_sdio_get_int_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	str	wzr, [x1]
	ldr	w0, [x24]
Lloh0:
	adrp	x23, _HOST_INTSTATUS_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HOST_INTSTATUS_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_sdio_readb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_BT_ERR
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_3:
	mov	x21, x0
Lloh7:
	adrp	x25, _DN_LD_HOST_INT_STATUS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DN_LD_HOST_INT_STATUS@GOTPAGEOFF]
Lloh9:
	adrp	x22, _UP_LD_HOST_INT_STATUS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _UP_LD_HOST_INT_STATUS@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_BT_DBG
	ldr	w0, [x24]
	ldr	w8, [x25]
	ldr	w9, [x22]
	orr	w8, w9, w8
	bic	w1, w8, w21
	ldr	w2, [x23]
	add	x3, sp, #12
	bl	_sdio_writeb
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_6:
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.7:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_BT_DBG
	b	LBB0_10
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_btmrvl_sdio_card_to_host
LBB0_12:
	mov	w0, #0
	str	w21, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_INTSTATUS_REG,4,2         ; @HOST_INTSTATUS_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio_readb: read int status register failed"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"sdio_ireg = 0x%x"

	.comm	_DN_LD_HOST_INT_STATUS,4,2      ; @DN_LD_HOST_INT_STATUS
	.comm	_UP_LD_HOST_INT_STATUS,4,2      ; @UP_LD_HOST_INT_STATUS
l_.str.2:                               ; @.str.2
	.asciz	"sdio_writeb: clear int status register failed"

l_.str.3:                               ; @.str.3
	.asciz	"tx_done already received:  int_status=0x%x"

	.no_dead_strip	_btmrvl_sdio_get_int_status
.subsections_via_symbols
