	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function talitos_sg_map_ext
_talitos_sg_map_ext:                    ## @talitos_sg_map_ext
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_has_ftr_sec1
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movl	40(%rbp), %r12d
	movl	32(%rbp), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_to_talitos_ptr_ext_set
	cmpl	$1, %r13d
	jne	LBB0_6
## %bb.4:
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_sg_dma_address
	movl	16(%rbp), %esi
	addq	%rax, %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_2:
	movl	%ebx, %ecx
	callq	_to_talitos_ptr
	movl	$1, %r13d
	jmp	LBB0_12
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movl	16(%rbp), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_to_talitos_ptr
	jmp	LBB0_12
LBB0_8:
	movslq	24(%rbp), %rbx
	shlq	$2, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r9
	addq	%rbx, %r9
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	16(%rbp), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	movl	32(%rbp), %r8d
	callq	_sg_to_link_tbl_offset
	movl	%eax, %r13d
	cmpl	$0, 40(%rbp)
	jne	LBB0_11
## %bb.9:
	cmpl	$1, %r13d
	jne	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_copy_talitos_ptr
	movl	$1, %r13d
	jmp	LBB0_12
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_to_talitos_ptr
	movq	_DESC_PTR_LNKTBL_JUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_to_talitos_ptr_ext_or
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_PTR_LNKTBL_JUMP,4,2       ## @DESC_PTR_LNKTBL_JUMP
	.no_dead_strip	_talitos_sg_map_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function talitos_sg_map_ext
_talitos_sg_map_ext:                    ; @talitos_sg_map_ext
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x25, x7
	mov	x23, x6
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x26, x1
	bl	_dev_get_drvdata
	bl	_has_ftr_sec1
	mov	x24, x0
	cbz	x26, LBB0_4
; %bb.1:
	ldp	w27, w28, [x29, #16]
	mov	x0, x20
	mov	x1, x27
	mov	x2, x24
	bl	_to_talitos_ptr_ext_set
	cmp	w19, #1
	b.ne	LBB0_6
; %bb.2:
	cbnz	w28, LBB0_6
; %bb.3:
	mov	x0, x26
	bl	_sg_dma_address
	add	x1, x0, w23, uxtw
	mov	x0, x20
	mov	x2, x21
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
LBB0_5:
	mov	x3, x24
	bl	_to_talitos_ptr
	mov	w19, #1
	b	LBB0_12
LBB0_6:
	cbz	w24, LBB0_8
; %bb.7:
	ldr	x8, [x22]
	add	x1, x8, w23, uxtw
	mov	x0, x20
	mov	x2, x21
	mov	x3, x24
	bl	_to_talitos_ptr
	b	LBB0_12
LBB0_8:
	ldr	x8, [x22, #8]
	sxtw	x24, w25
	add	x5, x8, w25, sxtw #2
	mov	x0, x26
	mov	x1, x19
	mov	x2, x23
	mov	x3, x21
	mov	x4, x27
	bl	_sg_to_link_tbl_offset
	mov	x19, x0
	cbnz	w28, LBB0_11
; %bb.9:
	cmp	w19, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x22, #8]
	add	x1, x8, x24, lsl #2
	mov	x0, x20
	mov	w2, #0
	bl	_copy_talitos_ptr
	b	LBB0_12
LBB0_11:
	ldr	x8, [x22]
	add	x1, x8, x24, lsl #2
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_to_talitos_ptr
Lloh0:
	adrp	x8, _DESC_PTR_LNKTBL_JUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESC_PTR_LNKTBL_JUMP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_to_talitos_ptr_ext_or
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_PTR_LNKTBL_JUMP,4,2       ; @DESC_PTR_LNKTBL_JUMP
	.no_dead_strip	_talitos_sg_map_ext
.subsections_via_symbols
