	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_mode_register          ## -- Begin function cx231xx_mode_register
	.p2align	4, 0x90
_cx231xx_mode_register:                 ## @cx231xx_mode_register
	.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	%edx, %r15d
	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
	leaq	-48(%rbp), %rcx
	movl	%r14d, %edx
	movl	$4, %r8d
	callq	_cx231xx_read_ctrl_reg
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	orl	%r15d, %eax
	movl	%eax, -48(%rbp)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -44(%rbp)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, -40(%rbp)
	sarl	$24, %eax
	movl	%eax, -36(%rbp)
	movq	_VRT_SET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	$4, %r8d
	callq	_cx231xx_write_ctrl_reg
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VRT_GET_REGISTER,4,2           ## @VRT_GET_REGISTER
	.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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cx231xx_mode_register
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx231xx_mode_register
	.p2align	2
_cx231xx_mode_register:                 ; @cx231xx_mode_register
	.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	x21, x2
	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]
	add	x3, sp, #8
	mov	x2, x19
	mov	w4, #4
	bl	_cx231xx_read_ctrl_reg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	orr	w8, w0, w21
	str	w8, [sp, #8]
	dup.2s	v0, w8
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [sp, #12]
	asr	w8, w8, #24
	str	w8, [sp, #20]
Lloh8:
	adrp	x8, _VRT_SET_REGISTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VRT_SET_REGISTER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x19
	mov	w4, #4
	bl	_cx231xx_write_ctrl_reg
LBB0_2:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VRT_GET_REGISTER,4,2           ; @VRT_GET_REGISTER
	.comm	_VRT_SET_REGISTER,4,2           ; @VRT_SET_REGISTER
.subsections_via_symbols
