	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7110_write_block
_saa7110_write_block:                   ## @saa7110_write_block
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_v4l2_get_subdevdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_to_saa7110
	movq	(%r15), %r12
	leal	-1(%r14), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rcx), %rdx
	movq	_SAA7110_NR_REG@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rdx
	jg	LBB0_7
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r12
	addq	$8, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r14), %esi
	movl	8(%r15,%r14,8), %edx
	movq	%r13, %rdi
	callq	_saa7110_write
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpl	%r14d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7110_NR_REG,8,3             ## @SAA7110_NR_REG
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.no_dead_strip	_saa7110_write_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7110_write_block
_saa7110_write_block:                   ; @saa7110_write_block
	.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	x23, x2
	mov	x22, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x25, x0
	mov	x0, x20
	bl	_to_saa7110
	ldr	x21, [x22]
	sub	w19, w23, #1
Lloh0:
	adrp	x8, _SAA7110_NR_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7110_NR_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x21, x19
	cmp	x9, x8
	b.le	LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_4
LBB0_2:
	mov	x24, x0
	ldr	w0, [x25]
Lloh3:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x25
	mov	x1, x22
	mov	x2, x23
	bl	_i2c_master_send
	mov	x20, x0
	ldr	x8, [x24]
	add	x0, x8, x21
	add	x1, x22, #8
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
LBB0_4:
	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
LBB0_5:
	cbz	w19, LBB0_1
; %bb.6:
	add	x22, x22, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_saa7110_write
	tbnz	w0, #31, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #8
	add	w21, w21, #1
	subs	w19, w19, #1
	b.ne	LBB0_7
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7110_NR_REG,8,3             ; @SAA7110_NR_REG
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.no_dead_strip	_saa7110_write_block
.subsections_via_symbols
