	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_hif_power_up
_ath10k_sdio_hif_power_up:              ## @ath10k_sdio_hif_power_up
	.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	%rdi, %r12
	callq	_ath10k_sdio_priv
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	8(%rax), %r15
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_ath10k_dbg
	movq	%r12, %rdi
	callq	_ath10k_sdio_config
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ath10k_err
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_sdio_claim_host
	movq	%r15, %rdi
	callq	_sdio_enable_func
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	movq	%r15, %rdi
	callq	_sdio_release_host
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_sdio_release_host
	movl	$20, %edi
	callq	_msleep
	movl	$0, (%r14)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_sdio_hif_disable_intrs  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio power on\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to config sdio: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"unable to enable sdio function: %d)\n"

	.no_dead_strip	_ath10k_sdio_hif_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_hif_power_up
_ath10k_sdio_hif_power_up:              ; @ath10k_sdio_hif_power_up
	.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	x19, x0
	bl	_ath10k_sdio_priv
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x19
	bl	_ath10k_sdio_config
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_ath10k_err
	b	LBB0_6
LBB0_3:
	mov	w22, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_sdio_claim_host
	mov	x0, x21
	bl	_sdio_enable_func
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_ath10k_warn
	mov	x0, x21
	bl	_sdio_release_host
LBB0_6:
	mov	x0, x22
	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
	ret
LBB0_7:
	mov	x0, x21
	bl	_sdio_release_host
	mov	w0, #20
	bl	_msleep
	str	wzr, [x20]
	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	_ath10k_sdio_hif_disable_intrs
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio power on\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to config sdio: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"unable to enable sdio function: %d)\n"

	.no_dead_strip	_ath10k_sdio_hif_power_up
.subsections_via_symbols
