	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_read
_ath10k_sdio_read:                      ## @ath10k_sdio_read
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_ath10k_sdio_priv
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_sdio_claim_host
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_sdio_memcpy_fromio
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_ath10k_warn
	jmp	LBB0_3
LBB0_2:
	movq	_ATH10K_DBG_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	movq	%r15, %r8
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_ath10k_dbg
	movq	_ATH10K_DBG_SDIO_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %rdi
	xorl	%edx, %edx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_ath10k_dbg_dump
LBB0_3:
	movq	%r12, %rdi
	callq	_sdio_release_host
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read from address 0x%x: %d\n"

	.comm	_ATH10K_DBG_SDIO,4,2            ## @ATH10K_DBG_SDIO
L_.str.1:                               ## @.str.1
	.asciz	"sdio read addr 0x%x buf 0x%p len %zu\n"

	.comm	_ATH10K_DBG_SDIO_DUMP,4,2       ## @ATH10K_DBG_SDIO_DUMP
L_.str.2:                               ## @.str.2
	.asciz	"sdio read "

	.no_dead_strip	_ath10k_sdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_read
_ath10k_sdio_read:                      ; @ath10k_sdio_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	bl	_ath10k_sdio_priv
	ldr	x19, [x0]
	mov	x0, x19
	bl	_sdio_claim_host
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	bl	_sdio_memcpy_fromio
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x3, x22
	bl	_ath10k_warn
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _ATH10K_DBG_SDIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH10K_DBG_SDIO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x20
	bl	_ath10k_dbg
Lloh7:
	adrp	x8, _ATH10K_DBG_SDIO_DUMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH10K_DBG_SDIO_DUMP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	mov	x4, x21
	mov	x5, x20
	bl	_ath10k_dbg_dump
LBB0_3:
	mov	x0, x19
	bl	_sdio_release_host
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read from address 0x%x: %d\n"

	.comm	_ATH10K_DBG_SDIO,4,2            ; @ATH10K_DBG_SDIO
l_.str.1:                               ; @.str.1
	.asciz	"sdio read addr 0x%x buf 0x%p len %zu\n"

	.comm	_ATH10K_DBG_SDIO_DUMP,4,2       ; @ATH10K_DBG_SDIO_DUMP
l_.str.2:                               ; @.str.2
	.asciz	"sdio read "

	.no_dead_strip	_ath10k_sdio_read
.subsections_via_symbols
