	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7146_i2c_msg_cleanup
_saa7146_i2c_msg_cleanup:               ## @saa7146_i2c_msg_cleanup
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, %rax
	shlq	$4, %rax
	incl	%esi
	cmpl	$0, (%rdi,%rax)
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	addq	%rdi, %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r12,%r13), %rax
	movslq	%eax, %rbx
	imulq	$1431655766, %rbx, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	movslq	%eax, %r15
	movl	(%r14,%r15,4), %edi
	callq	_le32_to_cpu
	leal	(%r15,%r15,2), %ecx
	subl	%ecx, %ebx
	shll	$3, %ebx
	movb	$24, %cl
	subb	%bl, %cl
	sarl	%cl, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%r13d, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_saa7146_i2c_msg_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7146_i2c_msg_cleanup
_saa7146_i2c_msg_cleanup:               ; @saa7146_i2c_msg_cleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x21, #0
	mov	w8, #0
	mov	w22, #24
	mov	w23, #21846
	movk	w23, #21845, lsl #16
	mov	w9, w1
	str	x9, [sp]                        ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x21, x9
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x25, x9, x21, lsl #4
	add	w8, w8, #1
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	add	x28, x25, #8
	mov	w27, w8
	sub	w20, w22, w8, lsl #3
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w27, w26
	smull	x8, w8, w23
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w24, w8, w9
	ldr	w0, [x19, w24, sxtw #2]
	bl	_le32_to_cpu
	madd	w8, w24, w22, w20
	asr	w8, w0, w8
	ldr	x9, [x28]
	str	w8, [x9, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x8, [x25]
	sub	w20, w20, #8
	cmp	x26, x8
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w27, w26
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_saa7146_i2c_msg_cleanup
.subsections_via_symbols
