	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_adma_tf_to_cpb
_nv_adma_tf_to_cpb:                     ## @nv_adma_tf_to_cpb
	.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	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rcx
	movq	_ATA_REG_ERR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	shll	$8, %edi
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	orl	4(%r14), %edi
	movq	_WNB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, (%r13)
	movq	_ATA_REG_NSECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	8(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r13)
	movq	_ATA_REG_LBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	12(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r13)
	movq	_ATA_REG_LBAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	16(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 12(%r13)
	movq	_ATA_REG_LBAH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	20(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%r13)
	movl	(%r15), %edi
	shll	$8, %edi
	orl	24(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 20(%r13)
	movl	$6, %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_4:
	orl	24(%r14), %edi
	movq	_WNB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, (%r13)
	movl	$1, %r15d
LBB0_5:
	movq	_ATA_REG_NSECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	28(%r14), %edi
	callq	_cpu_to_le16
	movl	%r15d, %r12d
	movl	%eax, (%r13,%r12,4)
	movq	_ATA_REG_LBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	32(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r13,%r12,4)
	movq	_ATA_REG_LBAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	36(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r13,%r12,4)
	movq	_ATA_REG_LBAH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	40(%r14), %edi
	callq	_cpu_to_le16
	addl	$4, %r15d
	movl	%eax, 12(%r13,%r12,4)
	movl	(%r14), %eax
LBB0_6:
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_ATA_REG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	44(%r14), %edi
	callq	_cpu_to_le16
	movl	%r15d, %ecx
	incl	%r15d
	movl	%eax, (%r13,%rcx,4)
LBB0_8:
	movq	_ATA_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	orl	48(%r14), %edi
	movq	_CMDEND@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%r15d, %ebx
	movl	%eax, (%r13,%rbx,4)
	cmpl	$10, %r15d
	ja	LBB0_11
## %bb.9:
	movq	_IGN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r13,%rbx,4)
	incq	%rbx
	cmpq	$11, %rbx
	jne	LBB0_10
LBB0_11:
	movl	$12, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_LBA48,4,2            ## @ATA_TFLAG_LBA48
	.comm	_ATA_REG_ERR,4,2                ## @ATA_REG_ERR
	.comm	_WNB,4,2                        ## @WNB
	.comm	_ATA_REG_NSECT,4,2              ## @ATA_REG_NSECT
	.comm	_ATA_REG_LBAL,4,2               ## @ATA_REG_LBAL
	.comm	_ATA_REG_LBAM,4,2               ## @ATA_REG_LBAM
	.comm	_ATA_REG_LBAH,4,2               ## @ATA_REG_LBAH
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.comm	_ATA_REG_DEVICE,4,2             ## @ATA_REG_DEVICE
	.comm	_ATA_REG_CMD,4,2                ## @ATA_REG_CMD
	.comm	_CMDEND,4,2                     ## @CMDEND
	.comm	_IGN,4,2                        ## @IGN
	.no_dead_strip	_nv_adma_tf_to_cpb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_adma_tf_to_cpb
_nv_adma_tf_to_cpb:                     ; @nv_adma_tf_to_cpb
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh5:
	adrp	x25, _ATA_REG_ERR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ATA_REG_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
	ldr	w9, [x25]
Lloh8:
	adrp	x24, _ATA_REG_NSECT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _ATA_REG_NSECT@GOTPAGEOFF]
Lloh10:
	adrp	x23, _ATA_REG_LBAL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ATA_REG_LBAL@GOTPAGEOFF]
	lsl	w9, w9, #8
Lloh12:
	adrp	x22, _ATA_REG_LBAM@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ATA_REG_LBAM@GOTPAGEOFF]
Lloh14:
	adrp	x21, _ATA_REG_LBAH@GOTPAGE
Lloh15:
	ldr	x21, [x21, _ATA_REG_LBAH@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x20, #4]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _WNB@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WNB@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [x19]
	ldr	w8, [x24]
	ldr	w9, [x20, #8]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	str	w0, [x19, #4]
	ldr	w8, [x23]
	ldr	w9, [x20, #12]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	str	w0, [x19, #8]
	ldr	w8, [x22]
	ldr	w9, [x20, #16]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	str	w0, [x19, #12]
	ldr	w8, [x21]
	ldr	w9, [x20, #20]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	str	w0, [x19, #16]
	ldr	w8, [x25]
	ldr	w9, [x20, #24]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	str	w0, [x19, #20]
	mov	w25, #6
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20, #24]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _WNB@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WNB@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [x19]
	mov	w25, #1
LBB0_5:
	ldr	w8, [x24]
	ldr	w9, [x20, #28]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	add	w24, w25, #1
	str	w0, [x19, w25, uxtw #2]
	ldr	w8, [x23]
	ldr	w9, [x20, #32]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	add	w23, w25, #2
	str	w0, [x19, w24, uxtw #2]
	ldr	w8, [x22]
	ldr	w9, [x20, #36]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	add	w22, w25, #3
	str	w0, [x19, w23, uxtw #2]
	ldr	w8, [x21]
	ldr	w9, [x20, #40]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	add	w21, w25, #4
	str	w0, [x19, w22, uxtw #2]
	ldr	w8, [x20]
LBB0_6:
Lloh22:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _ATA_REG_DEVICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATA_REG_DEVICE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x20, #44]
	orr	w0, w9, w8, lsl #8
	bl	_cpu_to_le16
	str	w0, [x19, w21, uxtw #2]
	add	w21, w21, #1
LBB0_8:
Lloh28:
	adrp	x8, _ATA_REG_CMD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATA_REG_CMD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x20, #48]
	orr	w8, w9, w8, lsl #8
Lloh31:
	adrp	x9, _CMDEND@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CMDEND@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [x19, w21, uxtw #2]
	cmp	w21, #10
	b.hi	LBB0_11
; %bb.9:
	mov	w8, w21
	add	x19, x19, #4
	lsl	x20, x8, #2
Lloh34:
	adrp	x21, _IGN@GOTPAGE
Lloh35:
	ldr	x21, [x21, _IGN@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_cpu_to_le16
	str	w0, [x19, x20]
	add	x20, x20, #4
	cmp	x20, #44
	b.ne	LBB0_10
LBB0_11:
	mov	w0, #12
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_LBA48,4,2            ; @ATA_TFLAG_LBA48
	.comm	_ATA_REG_ERR,4,2                ; @ATA_REG_ERR
	.comm	_WNB,4,2                        ; @WNB
	.comm	_ATA_REG_NSECT,4,2              ; @ATA_REG_NSECT
	.comm	_ATA_REG_LBAL,4,2               ; @ATA_REG_LBAL
	.comm	_ATA_REG_LBAM,4,2               ; @ATA_REG_LBAM
	.comm	_ATA_REG_LBAH,4,2               ; @ATA_REG_LBAH
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.comm	_ATA_REG_DEVICE,4,2             ; @ATA_REG_DEVICE
	.comm	_ATA_REG_CMD,4,2                ; @ATA_REG_CMD
	.comm	_CMDEND,4,2                     ; @CMDEND
	.comm	_IGN,4,2                        ; @IGN
	.no_dead_strip	_nv_adma_tf_to_cpb
.subsections_via_symbols
