	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_do_pass_16
_ata_do_pass_16:                        ## @ata_do_pass_16
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	56(%rbp), %r15
	movq	_CAM_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	jne	LBB0_1
## %bb.2:
	movq	_AP_FLAG_TDIR_FROM_DEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AP_FLAG_TDIR_TO_DEV@GOTPCREL(%rip), %rax
LBB0_3:
	movl	16(%rbp), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	48(%rbp), %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	64(%rbp), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	72(%rbp), %r12d
	testq	%r15, %r15
	jne	LBB0_5
## %bb.4:
	movq	_AP_FLAG_TLEN_NO_DATA@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_CCB_CLEAR_ALL_EXCEPT_HDR
	movq	_SSD_FULL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r12
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	$0
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	callq	_scsi_ata_pass_16
	addq	$80, %rsp
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsi_cam_pass_16_send          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAM_DIR_OUT,4,2                ## @CAM_DIR_OUT
	.comm	_AP_FLAG_TDIR_TO_DEV,4,2        ## @AP_FLAG_TDIR_TO_DEV
	.comm	_AP_FLAG_TDIR_FROM_DEV,4,2      ## @AP_FLAG_TDIR_FROM_DEV
	.comm	_AP_FLAG_TLEN_NO_DATA,4,2       ## @AP_FLAG_TLEN_NO_DATA
	.comm	_SSD_FULL_SIZE,4,2              ## @SSD_FULL_SIZE
	.no_dead_strip	_ata_do_pass_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_do_pass_16
_ata_do_pass_16:                        ; @ata_do_pass_16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	stp	w4, w6, [sp, #48]               ; 8-byte Folded Spill
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w28, [x29, #24]
	ldr	w8, [x29, #16]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldr	w20, [x29, #20]
	ldp	w25, w21, [x29, #40]
	ldr	x26, [x29, #32]
Lloh0:
	adrp	x8, _CAM_DIR_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAM_DIR_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AP_FLAG_TLEN_NO_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AP_FLAG_TLEN_NO_DATA@GOTPAGEOFF]
Lloh5:
	adrp	x10, _AP_FLAG_TDIR_FROM_DEV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AP_FLAG_TDIR_FROM_DEV@GOTPAGEOFF]
Lloh7:
	adrp	x11, _AP_FLAG_TDIR_TO_DEV@GOTPAGE
Lloh8:
	ldr	x11, [x11, _AP_FLAG_TDIR_TO_DEV@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x11, eq
	cmp	x26, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	orr	w27, w8, w5
	mov	x0, x1
	bl	_CCB_CLEAR_ALL_EXCEPT_HDR
Lloh9:
	adrp	x8, _SSD_FULL_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSD_FULL_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w21, [sp, #28]
	str	w25, [sp, #24]
	str	x26, [sp, #16]
	stp	w19, wzr, [sp, #8]
	stp	w28, w20, [sp]
	mov	x0, x24
	mov	x1, x23
	mov	x2, #0
	mov	x3, x22
	ldp	w5, w4, [sp, #48]               ; 8-byte Folded Reload
	mov	x6, x27
	ldr	w7, [sp, #44]                   ; 4-byte Folded Reload
	bl	_scsi_ata_pass_16
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_scsi_cam_pass_16_send
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAM_DIR_OUT,4,2                ; @CAM_DIR_OUT
	.comm	_AP_FLAG_TDIR_TO_DEV,4,2        ; @AP_FLAG_TDIR_TO_DEV
	.comm	_AP_FLAG_TDIR_FROM_DEV,4,2      ; @AP_FLAG_TDIR_FROM_DEV
	.comm	_AP_FLAG_TLEN_NO_DATA,4,2       ; @AP_FLAG_TLEN_NO_DATA
	.comm	_SSD_FULL_SIZE,4,2              ; @SSD_FULL_SIZE
	.no_dead_strip	_ata_do_pass_16
.subsections_via_symbols
