	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25840_initialize
_cx25840_initialize:                    ## @cx25840_initialize
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	movq	%rbx, %rdi
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	$-17, %edx
	xorl	%ecx, %ecx
	callq	_cx25840_and_or
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	callq	_init_dll1
	movq	%rbx, %rdi
	callq	_init_dll2
	movq	%rbx, %rdi
	movl	$310, %esi                      ## imm = 0x136
	movl	$10, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$316, %esi                      ## imm = 0x13C
	movl	$1, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$316, %esi                      ## imm = 0x13C
	xorl	%edx, %edx
	callq	_cx25840_write
	leaq	20(%r14), %r12
	movq	_cx25840_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_WORK
	movq	%r14, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_init_waitqueue_head
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_prepare_to_wait
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_queue_work
	xorl	%eax, %eax
	callq	_schedule
	movq	%r15, %rdi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	movq	%r13, %rdi
	callq	_destroy_workqueue
LBB0_2:
	movq	%rbx, %rdi
	movl	$277, %esi                      ## imm = 0x115
	movl	$140, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$278, %esi                      ## imm = 0x116
	movl	$7, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$280, %esi                      ## imm = 0x118
	movl	$2, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$1189, %esi                     ## imm = 0x4A5
	movl	$128, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$1189, %esi                     ## imm = 0x4A5
	xorl	%edx, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$1026, %esi                     ## imm = 0x402
	xorl	%edx, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$1025, %esi                     ## imm = 0x401
	movl	$-25, %edx
	xorl	%ecx, %ecx
	callq	_cx25840_and_or
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	movl	$-17, %edx
	movl	$16, %ecx
	callq	_cx25840_and_or
	movq	%rbx, %rdi
	movl	$2259, %esi                     ## imm = 0x8D3
	movl	$31, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$2275, %esi                     ## imm = 0x8E3
	movl	$3, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	callq	_cx25840_std_setup
	movq	%rbx, %rdi
	movl	$2324, %esi                     ## imm = 0x914
	movl	$160, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$2328, %esi                     ## imm = 0x918
	movl	$160, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$2329, %esi                     ## imm = 0x919
	movl	$1, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$2057, %esi                     ## imm = 0x809
	movl	$4, %edx
	callq	_cx25840_write
	movq	%rbx, %rdi
	movl	$2255, %esi                     ## imm = 0x8CF
	movl	$15, %edx
	callq	_cx25840_write
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_set_input
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_cx25840_vconfig_apply
LBB0_4:
	movq	%rbx, %rdi
	movl	$2051, %esi                     ## imm = 0x803
	movl	$-17, %edx
	movl	$16, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx25840_and_or                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_cx25840_work_handler,4,2       ## @cx25840_work_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx25840_fw"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_cx25840_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25840_initialize
_cx25840_initialize:                    ; @cx25840_initialize
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	mov	x0, x19
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x20, x0
	mov	x0, x19
	mov	w1, #2051
	mov	w2, #-17
	mov	w3, #0
	bl	_cx25840_and_or
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_cx25840_write
	mov	x0, x19
	bl	_init_dll1
	mov	x0, x19
	bl	_init_dll2
	mov	x0, x19
	mov	w1, #310
	mov	w2, #10
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #316
	mov	w2, #1
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #316
	mov	w2, #0
	bl	_cx25840_write
	add	x21, x20, #20
Lloh3:
	adrp	x8, _cx25840_work_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cx25840_work_handler@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_WORK
	add	x22, x20, #16
	mov	x0, x22
	bl	_init_waitqueue_head
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
Lloh8:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x24, _wait@GOTPAGE
Lloh12:
	ldr	x24, [x24, _wait@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x24
	bl	_prepare_to_wait
	mov	x0, x23
	mov	x1, x21
	bl	_queue_work
	bl	_schedule
	mov	x0, x22
	mov	x1, x24
	bl	_finish_wait
	mov	x0, x23
	bl	_destroy_workqueue
LBB0_2:
	mov	x0, x19
	mov	w1, #277
	mov	w2, #140
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #278
	mov	w2, #7
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #280
	mov	w2, #2
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1189
	mov	w2, #128
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1189
	mov	w2, #0
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1026
	mov	w2, #0
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1025
	mov	w2, #-25
	mov	w3, #0
	bl	_cx25840_and_or
	mov	x0, x19
	mov	w1, #1186
	mov	w2, #-17
	mov	w3, #16
	bl	_cx25840_and_or
	mov	x0, x19
	mov	w1, #2259
	mov	w2, #31
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #2275
	mov	w2, #3
	bl	_cx25840_write
	mov	x0, x19
	bl	_cx25840_std_setup
	mov	x0, x19
	mov	w1, #2324
	mov	w2, #160
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #2328
	mov	w2, #160
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #2329
	mov	w2, #1
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #2057
	mov	w2, #4
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #2255
	mov	w2, #15
	bl	_cx25840_write
	ldp	w2, w1, [x20, #8]
	mov	x0, x19
	bl	_set_input
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_cx25840_vconfig_apply
LBB0_4:
	mov	x0, x19
	mov	w1, #2051
	mov	w2, #-17
	mov	w3, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cx25840_and_or
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_cx25840_work_handler,4,2       ; @cx25840_work_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx25840_fw"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_cx25840_initialize
.subsections_via_symbols
