	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_enable_i2c_port_3      ## -- Begin function cx231xx_enable_i2c_port_3
	.p2align	4, 0x90
_cx231xx_enable_i2c_port_3:             ## @cx231xx_enable_i2c_port_3
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_VRT_GET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PWR_CTL_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-48(%rbp), %rcx
	movl	$4, %r8d
	callq	_cx231xx_read_ctrl_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	-48(%rbp), %edx
	movq	_I2C_DEMOD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	testl	%edx, %ecx
	setne	%sil
	xorl	%eax, %eax
	cmpl	%r14d, %esi
	je	LBB0_4
## %bb.2:
	movl	%ecx, %eax
	notl	%eax
	andl	%edx, %eax
	orl	%edx, %ecx
	testl	%r14d, %r14d
	cmovel	%eax, %ecx
	movl	%ecx, -48(%rbp)
	movq	_VRT_SET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %r8d
	callq	_cx231xx_write_ctrl_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%r14d, (%rbx)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VRT_GET_REGISTER,4,2           ## @VRT_GET_REGISTER
	.comm	_PWR_CTL_EN,4,2                 ## @PWR_CTL_EN
	.comm	_I2C_DEMOD_EN,4,2               ## @I2C_DEMOD_EN
	.comm	_VRT_SET_REGISTER,4,2           ## @VRT_SET_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_enable_i2c_port_3      ; -- Begin function cx231xx_enable_i2c_port_3
	.p2align	2
_cx231xx_enable_i2c_port_3:             ; @cx231xx_enable_i2c_port_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	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, #24]
	stp	xzr, xzr, [sp, #8]
Lloh3:
	adrp	x8, _VRT_GET_REGISTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VRT_GET_REGISTER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x21, _PWR_CTL_EN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PWR_CTL_EN@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	w4, #4
	bl	_cx231xx_read_ctrl_reg
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [sp, #8]
Lloh8:
	adrp	x9, _I2C_DEMOD_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_DEMOD_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w10, ne
	cmp	w10, w19
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w19, #0
	csel	w8, w10, w8, eq
	str	w8, [sp, #8]
Lloh11:
	adrp	x8, _VRT_SET_REGISTER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VRT_SET_REGISTER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	x0, x20
	mov	w4, #4
	bl	_cx231xx_write_ctrl_reg
	tbnz	w0, #31, LBB0_5
; %bb.4:
	str	w19, [x20]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VRT_GET_REGISTER,4,2           ; @VRT_GET_REGISTER
	.comm	_PWR_CTL_EN,4,2                 ; @PWR_CTL_EN
	.comm	_I2C_DEMOD_EN,4,2               ; @I2C_DEMOD_EN
	.comm	_VRT_SET_REGISTER,4,2           ; @VRT_SET_REGISTER
.subsections_via_symbols
