	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3646_mode_ctrl
_lm3646_mode_ctrl:                      ## @lm3646_mode_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_6
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_7
## %bb.3:
	movl	4(%rdi), %eax
	movq	_REG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MODE_SHDN@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movl	4(%rdi), %eax
	movq	_REG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MODE_TORCH@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movl	4(%rdi), %eax
	movq	_REG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MODE_FLASH@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %edx
	orl	(%rdi), %edx
	movl	%eax, %edi
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ENABLE,4,2                 ## @REG_ENABLE
	.comm	_MODE_SHDN,4,2                  ## @MODE_SHDN
	.comm	_MODE_TORCH,4,2                 ## @MODE_TORCH
	.comm	_MODE_FLASH,4,2                 ## @MODE_FLASH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lm3646_mode_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3646_mode_ctrl
_lm3646_mode_ctrl:                      ; @lm3646_mode_ctrl
	.cfi_startproc
; %bb.0:
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _REG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x9, _MODE_SHDN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MODE_SHDN@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _REG_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x9, _MODE_TORCH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MODE_TORCH@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _REG_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x9, _MODE_FLASH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MODE_FLASH@GOTPAGEOFF]
LBB0_6:
	ldp	w10, w8, [x0]
	ldr	w9, [x9]
	orr	w2, w9, w10
	mov	x0, x8
	b	_regmap_write
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ENABLE,4,2                 ; @REG_ENABLE
	.comm	_MODE_SHDN,4,2                  ; @MODE_SHDN
	.comm	_MODE_TORCH,4,2                 ; @MODE_TORCH
	.comm	_MODE_FLASH,4,2                 ; @MODE_FLASH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lm3646_mode_ctrl
.subsections_via_symbols
