	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_hif_start
_ath10k_sdio_hif_start:                 ## @ath10k_sdio_hif_start
	.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	%rdi, %r14
	callq	_ath10k_sdio_priv
	movq	%rax, %r15
	movl	$20, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_ath10k_sdio_hif_disable_intrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movl	4(%rax), %edx
	movl	%edx, (%rcx)
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %edi
	callq	_sdio_claim_host
	movl	(%r15), %edi
	movq	_ath10k_sdio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdio_claim_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	movl	(%r15), %edi
	callq	_sdio_release_host
	jmp	LBB0_6
LBB0_3:
	movl	(%r15), %edi
	callq	_sdio_release_host
	movq	%r14, %rdi
	callq	_ath10k_sdio_hif_enable_intrs
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ath10k_sdio_hif_set_mbox_sleep
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$20, %edi
	callq	_msleep
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_sdio_hif_set_mbox_sleep ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_sdio_irq_handler,4,2    ## @ath10k_sdio_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to claim sdio interrupt: %d\n"

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

	.no_dead_strip	_ath10k_sdio_hif_start
.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_start
_ath10k_sdio_hif_start:                 ; @ath10k_sdio_hif_start
	.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
	mov	x20, x0
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	bl	_ath10k_sdio_hif_disable_intrs
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldp	x8, x9, [x20, #8]
	ldr	w10, [x8, #4]
	ldr	x11, [x20, #24]
	str	w10, [x11]
	ldr	w8, [x8]
	str	w8, [x9]
	ldr	w0, [x20]
	bl	_sdio_claim_host
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _ath10k_sdio_irq_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_sdio_irq_handler@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sdio_claim_irq
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_warn
	ldr	w0, [x20]
	bl	_sdio_release_host
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20]
	bl	_sdio_release_host
	mov	x0, x19
	bl	_ath10k_sdio_hif_enable_intrs
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_ath10k_sdio_hif_set_mbox_sleep
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_6:
	mov	x0, x21
	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	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	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_set_mbox_sleep
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_sdio_irq_handler,4,2    ; @ath10k_sdio_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to claim sdio interrupt: %d\n"

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

	.no_dead_strip	_ath10k_sdio_hif_start
.subsections_via_symbols
