	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aoecmd_ata_rw
_aoecmd_ata_rw:                         ## @aoecmd_ata_rw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nextbuf
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_newframe
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_DEFAULTBCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	(%r13), %r15
	movq	32(%r13), %rcx
	cmpq	%r15, %rax
	cmovlq	%rax, %r15
	movq	%rcx, 40(%r14)
	movq	8(%rcx), %rax
	addq	(%rcx), %rax
	movq	8(%r13), %rbx
	subq	%rbx, %rax
	movq	%rax, (%r14)
	movq	%r15, %r12
	cmpq	%rbx, %r15
	jl	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	subq	%rbx, (%r13)
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r13), %rax
	leaq	16(%rax), %rcx
	movq	%rcx, 32(%r13)
	movq	24(%rax), %rax
	movq	%rax, 8(%r13)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	subq	%rbx, %r12
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rbx
	cmpq	%rbx, %r12
	jge	LBB0_6
LBB0_5:
	subq	%r12, %rbx
	movq	%rbx, 8(%r13)
	subq	%r12, (%r13)
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
LBB0_8:
	movq	%r13, 32(%r14)
	movq	%r15, 24(%r14)
	movq	%r14, %rdi
	callq	_ata_rw_frameinit
	incl	16(%r13)
	sarq	$9, %r15
	addq	%r15, 24(%r13)
	movl	20(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_clone
	movl	$1, %r12d
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_do_gettimeofday
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	___skb_queue_head_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___skb_queue_tail
	movq	%r14, %rdi
	callq	_aoenet_xmit
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULTBCNT,8,3                ## @DEFAULTBCNT
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_aoecmd_ata_rw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aoecmd_ata_rw
_aoecmd_ata_rw:                         ; @aoecmd_ata_rw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	bl	_nextbuf
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_newframe
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _DEFAULTBCNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEFAULTBCNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x9, x9, x8, eq
	ldp	x10, x8, [x20]
	cmp	x9, x10
	csel	x22, x9, x10, lt
	ldr	x9, [x20, #32]
	str	x9, [x0, #40]
	ldp	x10, x9, [x9]
	add	x9, x9, x10
	sub	x9, x9, x8
	str	x9, [x0]
	mov	x23, x22
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	subs	x9, x9, x8
	str	x9, [x20]
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x23, x23, x8
	ldr	x8, [x20, #32]
	add	x9, x8, #16
	str	x9, [x20, #32]
	ldr	x8, [x8, #24]
	str	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x23, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	cmp	x23, x8
	b.ge	LBB0_3
LBB0_6:
	sub	x8, x8, x23
	ldr	x9, [x20]
	sub	x9, x9, x23
	stp	x9, x8, [x20]
	b	LBB0_8
LBB0_7:
	str	xzr, [x21, #8]
LBB0_8:
	stp	x22, x20, [x19, #24]
	mov	x0, x19
	bl	_ata_rw_frameinit
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x20, #24]
	add	x8, x8, x22, asr #9
	str	x8, [x20, #24]
	ldr	w0, [x19, #20]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_skb_clone
	cbz	x0, LBB0_10
; %bb.9:
	mov	x20, x0
	add	x0, x19, #16
	bl	_do_gettimeofday
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	add	x0, sp, #8
	bl	___skb_queue_head_init
	add	x0, sp, #8
	mov	x1, x20
	bl	___skb_queue_tail
	add	x0, sp, #8
	bl	_aoenet_xmit
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULTBCNT,8,3                ; @DEFAULTBCNT
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_aoecmd_ata_rw
.subsections_via_symbols
