	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_scsi_rbuf_put
_ata_scsi_rbuf_put:                     ## @ata_scsi_rbuf_put
	.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, %r14
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_scsi_sglist
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_scsi_sg_count
	movq	_ata_scsi_rbuf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ATA_SCSI_RBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_sg_copy_from_buffer
LBB0_2:
	movq	(%r14), %rsi
	movq	_ata_scsi_rbuf_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ata_scsi_rbuf,4,2              ## @ata_scsi_rbuf
	.comm	_ATA_SCSI_RBUF_SIZE,4,2         ## @ATA_SCSI_RBUF_SIZE
	.comm	_ata_scsi_rbuf_lock,4,2         ## @ata_scsi_rbuf_lock
	.no_dead_strip	_ata_scsi_rbuf_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_scsi_rbuf_put
_ata_scsi_rbuf_put:                     ; @ata_scsi_rbuf_put
	.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	x19, x2
	cbz	w1, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_scsi_sglist
	mov	x21, x0
	mov	x0, x20
	bl	_scsi_sg_count
	mov	x1, x0
Lloh0:
	adrp	x8, _ata_scsi_rbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ata_scsi_rbuf@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _ATA_SCSI_RBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_SCSI_RBUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_sg_copy_from_buffer
LBB0_2:
	ldr	x1, [x19]
Lloh6:
	adrp	x0, _ata_scsi_rbuf_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ata_scsi_rbuf_lock@GOTPAGEOFF]
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ata_scsi_rbuf,4,2              ; @ata_scsi_rbuf
	.comm	_ATA_SCSI_RBUF_SIZE,4,2         ; @ATA_SCSI_RBUF_SIZE
	.comm	_ata_scsi_rbuf_lock,4,2         ; @ata_scsi_rbuf_lock
	.no_dead_strip	_ata_scsi_rbuf_put
.subsections_via_symbols
