	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt866_write
_bt866_write:                           ## @bt866_write
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%r12, -64(%rbp)
	movq	%r15, -56(%rbp)
	movq	(%rbx), %rax
	movq	%r15, (%rax,%r12,8)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_v4l_dbg
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_i2c_master_send
	xorl	%r15d, %r15d
	cmpl	$2, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_v4l_warn
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_i2c_master_send
	cmpl	$2, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$2, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_v4l_warn
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_i2c_master_send
	cmpl	$2, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_v4l_warn
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l_warn
	movl	$-1, %r15d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write 0x%02x = 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"error #%d writing to 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"giving up\n"

	.no_dead_strip	_bt866_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt866_write
_bt866_write:                           ; @bt866_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x0, x0, #8
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	stp	x20, x21, [sp, #24]
	ldr	x8, [x22]
	str	x21, [x8, x20, lsl #3]
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x20
	mov	x5, x21
	bl	_v4l_dbg
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #2
	bl	_i2c_master_send
	cmp	w0, #2
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #1
	stp	x8, x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l_warn
	mov	w0, #100
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #2
	bl	_i2c_master_send
	cmp	w0, #2
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #2
	stp	x8, x20, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l_warn
	mov	w0, #100
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #2
	bl	_i2c_master_send
	cmp	w0, #2
	b.ne	LBB0_6
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	mov	w8, #3
	stp	x8, x20, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l_warn
	mov	w0, #100
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_v4l_warn
	mov	w0, #-1
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write 0x%02x = 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"error #%d writing to 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"giving up\n"

	.no_dead_strip	_bt866_write
.subsections_via_symbols
