	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btmrvl_sdio_wakeup_fw
_btmrvl_sdio_wakeup_fw:                 ## @btmrvl_sdio_wakeup_fw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	$0, -12(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	callq	_sdio_claim_host
	movl	(%rbx), %edi
	movq	_HOST_POWER_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	callq	_sdio_writeb
	movl	(%rbx), %edi
	callq	_sdio_release_host
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_DBG
	movl	-12(%rbp), %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card or function is NULL!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HOST_POWER_UP,4,2              ## @HOST_POWER_UP
	.comm	_CONFIG_REG,4,2                 ## @CONFIG_REG
L_.str.1:                               ## @.str.1
	.asciz	"wake up firmware"

	.no_dead_strip	_btmrvl_sdio_wakeup_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btmrvl_sdio_wakeup_fw
_btmrvl_sdio_wakeup_fw:                 ; @btmrvl_sdio_wakeup_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
	str	wzr, [sp, #12]
	cbz	x19, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	cbz	w0, LBB0_3
; %bb.2:
	bl	_sdio_claim_host
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _HOST_POWER_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOST_POWER_UP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CONFIG_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_REG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_sdio_writeb
	ldr	w0, [x19]
	bl	_sdio_release_host
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
	ldr	w0, [sp, #12]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card or function is NULL!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HOST_POWER_UP,4,2              ; @HOST_POWER_UP
	.comm	_CONFIG_REG,4,2                 ; @CONFIG_REG
l_.str.1:                               ; @.str.1
	.asciz	"wake up firmware"

	.no_dead_strip	_btmrvl_sdio_wakeup_fw
.subsections_via_symbols
