	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_scsi_qc_new
_ata_scsi_qc_new:                       ## @ata_scsi_qc_new
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_ata_qc_new_init
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, 16(%rbx)
	movq	%r15, (%rbx)
	movq	%r14, %rdi
	callq	_scsi_sglist
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	callq	_scsi_sg_count
	movl	%eax, 8(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_DID_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movq	_QUEUE_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	%r14, %rdi
	callq	*%r15
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DID_OK,4,2                     ## @DID_OK
	.comm	_QUEUE_FULL,4,2                 ## @QUEUE_FULL
	.no_dead_strip	_ata_scsi_qc_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_scsi_qc_new
_ata_scsi_qc_new:                       ; @ata_scsi_qc_new
	.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, x2
	mov	x20, x1
	bl	_ata_qc_new_init
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	x20, [x19, #16]
	str	x21, [x19]
	mov	x0, x20
	bl	_scsi_sglist
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_scsi_sg_count
	str	w0, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _DID_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DID_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QUEUE_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QUEUE_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w9, #1
	orr	w8, w9, w8, lsl #16
	str	w8, [x20]
	mov	x0, x20
	blr	x21
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DID_OK,4,2                     ; @DID_OK
	.comm	_QUEUE_FULL,4,2                 ; @QUEUE_FULL
	.no_dead_strip	_ata_scsi_qc_new
.subsections_via_symbols
