	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_sdio_async_rw_scatter
_ath6kl_sdio_async_rw_scatter:          ## @ath6kl_sdio_async_rw_scatter
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_ath6kl_sdio_priv
	movl	20(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_ATH6KL_DBG_SCATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r12d
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movq	_HIF_SYNCHRONOUS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.5:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_sdio_scat_rw            ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	addq	$8, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_queue_work
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_SCATTER,4,2         ## @ATH6KL_DBG_SCATTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hif-scatter: total len: %d scatter entries: %d\n"

	.comm	_HIF_SYNCHRONOUS,4,2            ## @HIF_SYNCHRONOUS
	.no_dead_strip	_ath6kl_sdio_async_rw_scatter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_sdio_async_rw_scatter
_ath6kl_sdio_async_rw_scatter:          ; @ath6kl_sdio_async_rw_scatter
	.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	x21, x1
	mov	x20, x0
	bl	_ath6kl_sdio_priv
	ldr	w2, [x21, #20]
	cbz	w2, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w22, [x21]
Lloh0:
	adrp	x8, _ATH6KL_DBG_SCATTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_SCATTER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x21, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
Lloh5:
	adrp	x8, _HIF_SYNCHRONOUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HIF_SYNCHRONOUS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.2:
	ldr	x1, [x21, #8]
	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	_ath6kl_sdio_scat_rw
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x0, [x21, #8]
	add	x1, x19, #8
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w0, [x20]
	mov	x1, x19
	bl	_queue_work
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_SCATTER,4,2         ; @ATH6KL_DBG_SCATTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hif-scatter: total len: %d scatter entries: %d\n"

	.comm	_HIF_SYNCHRONOUS,4,2            ; @HIF_SYNCHRONOUS
	.no_dead_strip	_ath6kl_sdio_async_rw_scatter
.subsections_via_symbols
