	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpx_setup
_mpx_setup:                             ## @mpx_setup
	.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
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movslq	(%r14), %r12
	movabsq	$549755813888, %rax             ## imm = 0x8000000000
	movq	%rax, -60(%rbp)
	movl	$0, -52(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	$3, -96(%rbp)
	leaq	-60(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	(%r15), %edi
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	$0, -56(%rbp)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	4(%r14), %edi
	xorl	%eax, %eax
	cmpl	$129, %edi
	setne	%al
	addq	%r12, %rax
	movq	_mpx_audio_modes@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rax,%rax,4), %rdx
	movq	(%rcx,%rdx,8), %rbx
	movq	_AUD_MONO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rbx
	jne	LBB0_2
## %bb.1:
	movl	8(%rcx,%rdx,8), %r13d
	jmp	LBB0_12
LBB0_2:
	xorl	%r8d, %r8d
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdi,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_5:
	cmpq	$132, %rbx
	je	LBB0_10
## %bb.6:
	cmpq	$134, %rbx
	jne	LBB0_11
LBB0_7:
	movl	8(%rcx,%rdx,8), %r8d
	jmp	LBB0_11
LBB0_8:
	movl	$1024, %r8d                     ## imm = 0x400
	jmp	LBB0_11
LBB0_9:
	movl	$768, %r8d                      ## imm = 0x300
	jmp	LBB0_11
LBB0_10:
	movl	$512, %r8d                      ## imm = 0x200
LBB0_11:
	movzbl	8(%rcx,%rdx,8), %r13d
	orl	%r8d, %r13d
LBB0_12:
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rbx
	movl	12(%rcx,%rbx), %ecx
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$48, %edx
	callq	_mpx_write
	movq	%r15, %rdi
	movl	$18, %esi
	movl	$8, %edx
	movl	%r13d, %ecx
	callq	_mpx_write
	movq	(%r12), %rax
	movl	16(%rax,%rbx), %ecx
	movq	%r15, %rdi
	movl	$18, %esi
	movl	$19, %edx
	callq	_mpx_write
	movq	(%r12), %rax
	movl	20(%rax,%rbx), %ecx
	movq	%r15, %rdi
	movl	$18, %esi
	movl	$14, %edx
	callq	_mpx_write
	movq	(%r12), %rax
	movl	24(%rax,%rbx), %ecx
	movq	%r15, %rdi
	movl	$18, %esi
	movl	$16, %edx
	callq	_mpx_write
	movq	(%r12), %rax
	movl	28(%rax,%rbx), %ecx
	movq	%r15, %rdi
	movl	$18, %esi
	movl	$13, %edx
	callq	_mpx_write
	movq	(%r12), %rax
	movl	32(%rax,%rbx), %ecx
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$32, %edx
	callq	_mpx_write
	movq	(%r12), %rax
	movl	36(%rax,%rbx), %ecx
	movq	%r15, %rdi
	movl	$18, %esi
	xorl	%edx, %edx
	callq	_mpx_write
	movq	(%r12), %rax
	cmpq	$134, (%rax,%rbx)
	jne	LBB0_14
## %bb.13:
	cmpl	$129, 4(%r14)
	movl	$2032, %eax                     ## imm = 0x7F0
	movl	$400, %ecx                      ## imm = 0x190
	cmovel	%eax, %ecx
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$34, %edx
	callq	_mpx_write
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_mpx_audio_modes,8,3            ## @mpx_audio_modes
	.comm	_AUD_MONO,8,3                   ## @AUD_MONO
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.no_dead_strip	_mpx_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mpx_setup
lCPI0_0:
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mpx_setup:                             ; @mpx_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x0, x0, #8
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	ldr	w21, [x20]
	str	wzr, [sp, #44]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #48]
	ldr	w8, [x0, #4]
	str	w8, [sp, #32]
	mov	w8, #3
	str	w8, [sp, #8]
	add	x8, sp, #44
	stp	x8, xzr, [sp, #16]
	ldr	w0, [x0]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	str	wzr, [sp, #48]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	ldr	w11, [x20, #4]
	cmp	w11, #129
	cinc	w10, w21, ne
Lloh5:
	adrp	x22, _mpx_audio_modes@GOTPAGE
Lloh6:
	ldr	x22, [x22, _mpx_audio_modes@GOTPAGEOFF]
	ldr	x8, [x22]
	sxtw	x9, w10
	mov	w12, #40
	smull	x10, w10, w12
	ldr	x10, [x8, x10]
Lloh7:
	adrp	x12, _AUD_MONO@GOTPAGE
Lloh8:
	ldr	x12, [x12, _AUD_MONO@GOTPAGEOFF]
Lloh9:
	ldr	x12, [x12]
	cmp	x10, x12
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	w21, [x10, #8]
	b	LBB0_12
LBB0_2:
	sub	w11, w11, #128
	cmp	w11, #3
	b.hi	LBB0_7
; %bb.3:
Lloh10:
	adrp	x12, lJTI0_0@PAGE
Lloh11:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_4
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_4:
	cmp	x10, #132
	b.eq	LBB0_10
; %bb.5:
	cmp	x10, #134
	b.ne	LBB0_7
LBB0_6:
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	w10, [x10, #8]
	b	LBB0_11
LBB0_7:
	mov	w10, #0
	b	LBB0_11
LBB0_8:
	mov	w10, #1024
	b	LBB0_11
LBB0_9:
	mov	w10, #768
	b	LBB0_11
LBB0_10:
	mov	w10, #512
LBB0_11:
	mov	w11, #40
	madd	x11, x9, x11, x8
	ldrb	w11, [x11, #8]
	orr	w21, w11, w10
LBB0_12:
	add	x9, x9, x9, lsl #2
	lsl	x23, x9, #3
	add	x8, x8, x23
	ldr	w3, [x8, #12]
	mov	x0, x19
	mov	w1, #16
	mov	w2, #48
	bl	_mpx_write
	mov	x0, x19
	mov	w1, #18
	mov	w2, #8
	mov	x3, x21
	bl	_mpx_write
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w3, [x8, #16]
	mov	x0, x19
	mov	w1, #18
	mov	w2, #19
	bl	_mpx_write
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w3, [x8, #20]
	mov	x0, x19
	mov	w1, #18
	mov	w2, #14
	bl	_mpx_write
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w3, [x8, #24]
	mov	x0, x19
	mov	w1, #18
	mov	w2, #16
	bl	_mpx_write
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w3, [x8, #28]
	mov	x0, x19
	mov	w1, #18
	mov	w2, #13
	bl	_mpx_write
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w3, [x8, #32]
	mov	x0, x19
	mov	w1, #16
	mov	w2, #32
	bl	_mpx_write
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w3, [x8, #36]
	mov	x0, x19
	mov	w1, #18
	mov	w2, #0
	bl	_mpx_write
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	cmp	x8, #134
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x20, #4]
	mov	w9, #400
	mov	w10, #2032
	cmp	w8, #129
	csel	w3, w10, w9, eq
	mov	x0, x19
	mov	w1, #16
	mov	w2, #34
	bl	_mpx_write
LBB0_14:
	ldr	x8, [sp, #56]
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_16
; %bb.15:
	mov	w0, #0
	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
	add	sp, sp, #128
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_mpx_audio_modes,8,3            ; @mpx_audio_modes
	.comm	_AUD_MONO,8,3                   ; @AUD_MONO
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.no_dead_strip	_mpx_setup
.subsections_via_symbols
