	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_fsl_setup_cmd_hdr_entry
_sata_fsl_setup_cmd_hdr_entry:          ## @sata_fsl_setup_cmd_hdr_entry
	.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
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SATA_FSL_CMD_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%esi, %edi
	addl	(%r14), %edi
	callq	_cpu_to_le32
	movq	8(%r14), %rcx
	movl	%ebx, %r12d
	shlq	$5, %r12
	movq	%rax, 24(%rcx,%r12)
	shll	$16, %r15d
	shll	$2, %r13d
	orl	%r15d, %r13d
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx,%r12)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	andl	$-4, %edi
	callq	_cpu_to_le32
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx,%r12)
	andl	$31, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	8(%r14), %rdx
	movq	%rax, (%rdx,%r12)
	movq	24(%rdx,%r12), %rsi
	movq	8(%rdx,%r12), %rcx
	movq	16(%rdx,%r12), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VPRINTK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SATA_FSL_CMD_DESC_SIZE,4,2     ## @SATA_FSL_CMD_DESC_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cda=0x%x, prde_fis_len=0x%x, ttl=0x%x, di=0x%x\n"

	.no_dead_strip	_sata_fsl_setup_cmd_hdr_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_fsl_setup_cmd_hdr_entry
_sata_fsl_setup_cmd_hdr_entry:          ; @sata_fsl_setup_cmd_hdr_entry
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SATA_FSL_CMD_DESC_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SATA_FSL_CMD_DESC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	madd	w0, w9, w1, w8
	bl	_cpu_to_le32
	ldr	x8, [x24, #8]
	mov	w9, w23
	lsl	x25, x9, #5
	add	x8, x8, x25
	str	x0, [x8, #24]
	lsl	w8, w19, #2
	orr	w0, w8, w20, lsl #16
	bl	_cpu_to_le32
	ldr	x8, [x24, #8]
	add	x8, x8, x25
	str	x0, [x8, #16]
	and	w0, w21, #0xfffffffc
	bl	_cpu_to_le32
	ldr	x8, [x24, #8]
	add	x8, x8, x25
	str	x0, [x8, #8]
	and	w8, w23, #0x1f
	orr	w0, w8, w22
	bl	_cpu_to_le32
	mov	x4, x0
	ldr	x8, [x24, #8]
	add	x8, x8, x25
	str	x0, [x8]
	ldp	x2, x1, [x8, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldr	x3, [x8, #8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_VPRINTK
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SATA_FSL_CMD_DESC_SIZE,4,2     ; @SATA_FSL_CMD_DESC_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cda=0x%x, prde_fis_len=0x%x, ttl=0x%x, di=0x%x\n"

	.no_dead_strip	_sata_fsl_setup_cmd_hdr_entry
.subsections_via_symbols
