	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_i2c_bridge
_ctrl_i2c_bridge:                       ## @ctrl_i2c_bridge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_SIO_HI_RA_RAM_CMD_BRDCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	_SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, (%rsi)
	jne	LBB0_3
## %bb.4:
	movq	_SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	(%rdi), %edi
	leaq	-16(%rbp), %rsi
	leaq	-4(%rbp), %rdx
	callq	_hi_command
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIO_HI_RA_RAM_CMD_BRDCTRL,4,2  ## @SIO_HI_RA_RAM_CMD_BRDCTRL
	.comm	_SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY,4,2 ## @SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY
	.comm	_SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED,4,2 ## @SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED
	.comm	_SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN,4,2 ## @SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN
	.no_dead_strip	_ctrl_i2c_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_i2c_bridge
_ctrl_i2c_bridge:                       ; @ctrl_i2c_bridge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	str	wzr, [sp, #12]
	cbz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SIO_HI_RA_RAM_CMD_BRDCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_HI_RA_RAM_CMD_BRDCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
Lloh6:
	adrp	x8, _SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED@GOTPAGEOFF]
	ldr	w10, [x1]
	cmp	w10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	w0, [x0]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_hi_command
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIO_HI_RA_RAM_CMD_BRDCTRL,4,2  ; @SIO_HI_RA_RAM_CMD_BRDCTRL
	.comm	_SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY,4,2 ; @SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY
	.comm	_SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED,4,2 ; @SIO_HI_RA_RAM_PAR_2_BRD_CFG_CLOSED
	.comm	_SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN,4,2 ; @SIO_HI_RA_RAM_PAR_2_BRD_CFG_OPEN
	.no_dead_strip	_ctrl_i2c_bridge
.subsections_via_symbols
