	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_i2s_blk_update_power_control ## -- Begin function cx231xx_i2s_blk_update_power_control
	.p2align	4, 0x90
_cx231xx_i2s_blk_update_power_control:  ## @cx231xx_i2s_blk_update_power_control
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	movq	_POLARIS_AVMODE_ENXTERNAL_AV@GOTPCREL(%rip), %rcx
	movq	_I2S_BLK_DEVICE_ADDRESS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CH_PWR_CTRL2@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmpl	%eax, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx231xx_write_i2c_data         ## TAILCALL
LBB0_1:
	leaq	-28(%rbp), %r8
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r9d
	callq	_cx231xx_read_i2c_data
	movl	$254, %r8d
	orl	-28(%rbp), %r8d
	movl	%r8d, -28(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r9d
	callq	_cx231xx_write_i2c_data
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLARIS_AVMODE_ENXTERNAL_AV,4,2 ## @POLARIS_AVMODE_ENXTERNAL_AV
	.comm	_I2S_BLK_DEVICE_ADDRESS,4,2     ## @I2S_BLK_DEVICE_ADDRESS
	.comm	_CH_PWR_CTRL2,4,2               ## @CH_PWR_CTRL2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_i2s_blk_update_power_control ; -- Begin function cx231xx_i2s_blk_update_power_control
	.p2align	2
_cx231xx_i2s_blk_update_power_control:  ; @cx231xx_i2s_blk_update_power_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x9, _POLARIS_AVMODE_ENXTERNAL_AV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POLARIS_AVMODE_ENXTERNAL_AV@GOTPAGEOFF]
Lloh2:
	adrp	x20, _I2S_BLK_DEVICE_ADDRESS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _I2S_BLK_DEVICE_ADDRESS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _CH_PWR_CTRL2@GOTPAGE
Lloh6:
	ldr	x21, [x21, _CH_PWR_CTRL2@GOTPAGEOFF]
	ldr	w2, [x21]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	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
	add	sp, sp, #64
	b	_cx231xx_write_i2c_data
LBB0_2:
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w5, #1
	bl	_cx231xx_read_i2c_data
	ldr	w8, [sp, #12]
	orr	w4, w8, #0xfe
	str	w4, [sp, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #1
	mov	w5, #1
	bl	_cx231xx_write_i2c_data
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_POLARIS_AVMODE_ENXTERNAL_AV,4,2 ; @POLARIS_AVMODE_ENXTERNAL_AV
	.comm	_I2S_BLK_DEVICE_ADDRESS,4,2     ; @I2S_BLK_DEVICE_ADDRESS
	.comm	_CH_PWR_CTRL2,4,2               ; @CH_PWR_CTRL2
.subsections_via_symbols
