	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_rw_frameinit
_ata_rw_frameinit:                      ## @ata_rw_frameinit
	.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	%rdi, %rbx
	movq	64(%rdi), %r14
	movq	%r14, %rdi
	callq	_skb_mac_header
	movq	%rax, %r15
	leaq	4(%rax), %r13
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_skb_put
	movl	(%r14), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	56(%rbx), %r12
	movq	16(%r12), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_aoehdr_atainit
	movl	%eax, 48(%rbx)
	movq	%rbx, %rdi
	callq	_fhash
	incl	24(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %esi
	movl	%esi, 24(%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	24(%rbx), %esi
LBB0_3:
	movl	(%rbx), %eax
	sarl	$9, %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_put_lba
	movq	16(%r12), %rax
	movq	_DEVFL_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_AOEAFL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movb	$4, %r13b
	jmp	LBB0_6
LBB0_5:
	movl	8(%r15), %eax
	andl	$15, %eax
	orl	$224, %eax
	movl	%eax, 8(%r15)
	xorl	%r13d, %r13d
LBB0_6:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%rax), %edi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_skb_fillup
	movq	_AOEAFL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movl	(%rbx), %eax
	addl	%eax, (%r14)
	movl	%eax, 4(%r14)
	addl	%eax, 8(%r14)
	incl	12(%r12)
	movb	$16, %al
	jmp	LBB0_10
LBB0_9:
	incl	8(%r12)
	xorl	%eax, %eax
LBB0_10:
	orb	%r13b, %al
	movq	_ATA_CMD_PIO_READ@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movb	%al, 12(%r15)
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVFL_EXT,4,2                  ## @DEVFL_EXT
	.comm	_AOEAFL_EXT,4,2                 ## @AOEAFL_EXT
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_AOEAFL_WRITE,4,2               ## @AOEAFL_WRITE
	.comm	_ATA_CMD_PIO_READ,1,0           ## @ATA_CMD_PIO_READ
	.no_dead_strip	_ata_rw_frameinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_rw_frameinit
_ata_rw_frameinit:                      ; @ata_rw_frameinit
	.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	x22, x0
	ldr	x19, [x0, #64]
	mov	x0, x19
	bl	_skb_mac_header
	mov	x20, x0
	add	x23, x0, #4
	mov	x0, x19
	mov	w1, #20
	bl	_skb_put
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	x21, [x22, #56]
	ldr	x0, [x21, #16]
	mov	x1, x21
	mov	x2, x20
	bl	_aoehdr_atainit
	str	w0, [x22, #48]
	mov	x0, x22
	bl	_fhash
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
	stp	xzr, xzr, [x22, #32]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x8, #4]
	str	w1, [x22, #24]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x22, #24]
LBB0_3:
	ldr	w8, [x22]
	asr	w8, w8, #9
	str	w8, [x23]
	mov	x0, x23
	bl	_put_lba
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _DEVFL_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEVFL_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _AOEAFL_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AOEAFL_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	mov	w23, #4
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w23, #0
	ldr	w8, [x20, #8]
	mov	w9, #224
	bfxil	w9, w8, #0, #4
	str	w9, [x20, #8]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_8
LBB0_6:
	ldr	w0, [x8]
	bl	_bio_data_dir
Lloh6:
	adrp	x8, _WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	w2, w1, [x22, #4]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_skb_fillup
Lloh9:
	adrp	x8, _AOEAFL_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AOEAFL_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	ldr	w8, [x22]
	ldr	w9, [x19]
	add	w9, w9, w8
	stp	w9, w8, [x19]
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	mov	w8, #16
	b	LBB0_9
LBB0_8:
	mov	w8, #0
	ldr	w9, [x21, #8]
	add	w9, w9, #1
	str	w9, [x21, #8]
LBB0_9:
Lloh12:
	adrp	x9, _ATA_CMD_PIO_READ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_CMD_PIO_READ@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w23
	orr	w8, w8, w9
	strb	w8, [x20, #12]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [x19, #12]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVFL_EXT,4,2                  ; @DEVFL_EXT
	.comm	_AOEAFL_EXT,4,2                 ; @AOEAFL_EXT
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_AOEAFL_WRITE,4,2               ; @AOEAFL_WRITE
	.comm	_ATA_CMD_PIO_READ,1,0           ; @ATA_CMD_PIO_READ
	.no_dead_strip	_ata_rw_frameinit
.subsections_via_symbols
