	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_bam_make_desc
_qup_i2c_bam_make_desc:                 ## @qup_i2c_bam_make_desc
	.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	$72, %rsp
	.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, %r12
	movq	_QUP_READ_LIMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, 64(%rdi)
	callq	_qup_i2c_set_blk_data
	movl	4(%r12), %eax
	movl	8(%r12), %r8d
	movl	(%r13), %edi
	leal	-1(%rax), %ecx
	movl	%ecx, %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	imull	%ebx, %esi
	subl	%esi, %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_I2C_M_RD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 4(%r13)
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.1:
	xorl	%edx, %edx
	cmpl	%eax, %r8d
	jge	LBB0_6
## %bb.2:
	movslq	-56(%rbp), %rdx                 ## 4-byte Folded Reload
	movl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, -80(%rbp)                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	cmovel	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	(%r12), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rdi
	addq	%rax, %rdi
	shlq	$2, %rdi
	addq	32(%r12), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_qup_i2c_set_tags
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	subl	%ebx, 12(%r12)
	movslq	40(%r12), %rdi
	leal	1(%rdi), %eax
	movl	%eax, 40(%r12)
	shlq	$2, %rdi
	addq	48(%r12), %rdi
	movq	56(%r12), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$2, %edx
	movq	%r12, %rcx
	callq	_qup_sg_set_buf
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	40(%r12), %rdi
	leal	1(%rdi), %eax
	movl	%eax, 40(%r12)
	shlq	$2, %rdi
	addq	48(%r12), %rdi
	movq	8(%r13), %rsi
	addq	%r14, %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_qup_sg_set_buf
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	-88(%rbp), %edx                 ## 4-byte Folded Reload
	incq	%r15
	movl	%r15d, 8(%r12)
	addq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_3
LBB0_6:
	movslq	16(%r12), %rdi
	leal	1(%rdi), %eax
	movl	%eax, 16(%r12)
	shlq	$2, %rdi
	addq	24(%r12), %rdi
	movslq	(%r12), %rsi
	shlq	$2, %rsi
	addq	32(%r12), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rcx
	movl	%edx, %ebx
	callq	_qup_sg_set_buf
	movl	%ebx, %edx
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_12
LBB0_7:
	xorl	%edx, %edx
	cmpl	%eax, %r8d
	jge	LBB0_12
## %bb.8:
	movslq	-56(%rbp), %rdx                 ## 4-byte Folded Reload
	movl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
	cmovel	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movslq	(%r12), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movslq	%edx, %r14
	addq	%rax, %r14
	shlq	$2, %r14
	addq	32(%r12), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_qup_i2c_set_tags
	subl	%r15d, 12(%r12)
	movl	%eax, %edx
	movslq	16(%r12), %rdi
	leal	1(%rdi), %eax
	movl	%eax, 16(%r12)
	shlq	$2, %rdi
	addq	24(%r12), %rdi
	movl	(%rbx), %r8d
	movq	%r14, %rsi
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movq	%r12, %rcx
	callq	_qup_sg_set_buf
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	16(%r12), %rdi
	leal	1(%rdi), %eax
	movl	%eax, 16(%r12)
	shlq	$2, %rdi
	addq	24(%r12), %rdi
	movq	8(%r13), %rsi
	movq	%rbx, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rsi
	movl	(%r14), %r8d
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_qup_sg_set_buf
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	-72(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movl	%eax, 8(%r12)
	addq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	cmpq	%rax, -104(%rbp)                ## 8-byte Folded Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_9
LBB0_12:
	addl	%edx, (%r12)
	xorl	%eax, %eax
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUP_READ_LIMIT,8,3             ## @QUP_READ_LIMIT
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_qup_i2c_bam_make_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_bam_make_desc
_qup_i2c_bam_make_desc:                 ; @qup_i2c_bam_make_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QUP_READ_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUP_READ_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	str	x25, [x0, #64]
	bl	_qup_i2c_set_blk_data
	ldp	w8, w9, [x19, #4]
	sub	w26, w8, #1
	ldp	w10, w11, [x21]
	msub	w10, w26, w25, w10
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
Lloh3:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_6
; %bb.1:
	cmp	w9, w8
	b.ge	LBB0_11
; %bb.2:
	mov	x24, #0
	mov	x28, #0
	mov	w20, #0
	sxtw	x9, w25
	cmp	w8, #1
	csinc	w10, w8, wzr, gt
	lsl	x8, x9, #2
	stp	x8, x10, [sp, #8]               ; 16-byte Folded Spill
Lloh6:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x26, x28
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	csel	w22, w8, w25, eq
	ldr	x8, [x19, #32]
	ldr	w9, [x19]
	add	w9, w9, w20
	add	x0, x8, w9, sxtw #2
	mov	x1, x19
	mov	x2, x21
	bl	_qup_i2c_set_tags
	mov	x23, x0
	ldr	w8, [x19, #12]
	sub	w8, w8, w22
	str	w8, [x19, #12]
	ldrsw	x8, [x19, #40]
	add	w9, w8, #1
	str	w9, [x19, #40]
	ldp	x9, x1, [x19, #48]
	add	x0, x9, x8, lsl #2
	ldr	w4, [x27]
	mov	w2, #2
	mov	x3, x19
	bl	_qup_sg_set_buf
	cbnz	w0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #48]
	ldrsw	x9, [x19, #40]
	add	w10, w9, #1
	str	w10, [x19, #40]
	add	x0, x8, x9, lsl #2
	ldr	x8, [x21, #8]
	add	x1, x8, x24
	ldr	w4, [x27]
	mov	x2, x22
	mov	x3, x19
	bl	_qup_sg_set_buf
	cbnz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w23, w20
	add	x28, x28, #1
	str	w28, [x19, #8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x28
	b.ne	LBB0_3
	b	LBB0_12
LBB0_6:
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.7:
	mov	x28, #0
	mov	x27, #0
	mov	w20, #0
	sxtw	x9, w25
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	stp	x8, x26, [sp, #8]               ; 16-byte Folded Spill
	lsl	x8, x9, #2
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh8:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x27
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	csel	w22, w8, w25, eq
	ldr	x8, [x19, #32]
	ldr	w9, [x19]
	add	w9, w9, w20
	add	x24, x8, w9, sxtw #2
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	bl	_qup_i2c_set_tags
	mov	x23, x0
	ldp	w8, w9, [x19, #12]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	sub	w8, w8, w22
	ldr	x10, [x19, #24]
	add	w11, w9, #1
	stp	w8, w11, [x19, #12]
	add	x0, x10, x9, lsl #2
	ldr	w4, [x26]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	bl	_qup_sg_set_buf
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #16]
	add	x0, x8, x9, lsl #2
	ldr	x8, [x21, #8]
	add	x1, x8, x28
	ldr	w4, [x26]
	mov	x2, x22
	mov	x3, x19
	bl	_qup_sg_set_buf
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w23, w20
	add	x27, x27, #1
	str	w27, [x19, #8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x28, x28, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x27
	b.ne	LBB0_8
	b	LBB0_14
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldrsw	x8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
	ldp	x9, x10, [x19, #24]
	add	x0, x9, x8, lsl #2
	ldrsw	x8, [x19]
	add	x1, x10, x8, lsl #2
Lloh10:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x2, x20
	mov	x3, x19
	bl	_qup_sg_set_buf
	cbnz	w0, LBB0_15
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QUP_READ_LIMIT,8,3             ; @QUP_READ_LIMIT
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_qup_i2c_bam_make_desc
.subsections_via_symbols
