	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgs8gxx_i2c_gate_ctrl
_lgs8gxx_i2c_gate_ctrl:                 ## @lgs8gxx_i2c_gate_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	orl	$128, %edx
	testl	%esi, %esi
	cmovel	%esi, %edx
	movl	$1, %esi
	popq	%rbp
	jmp	_lgs8gxx_write_reg              ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lgs8gxx_i2c_gate_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgs8gxx_i2c_gate_ctrl
_lgs8gxx_i2c_gate_ctrl:                 ; @lgs8gxx_i2c_gate_ctrl
	.cfi_startproc
; %bb.0:
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	orr	w8, w8, #0x80
	cmp	w1, #0
	csel	w2, wzr, w8, eq
	mov	w1, #1
	b	_lgs8gxx_write_reg
LBB0_2:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lgs8gxx_i2c_gate_ctrl
.subsections_via_symbols
