	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_reg_locked
_is_reg_locked:                         ## @is_reg_locked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WM8350_SECURITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rsi, %rcx
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	_WM8350_UNLOCK_KEY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.2:
	movq	_WM8350_GPIO_FUNCTION_SELECT_1@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	ja	LBB0_4
## %bb.3:
	movq	_WM8350_GPIO_FUNCTION_SELECT_4@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	%rsi, (%rcx)
	jb	LBB0_4
LBB0_5:
	popq	%rbp
	retq
LBB0_4:
	movq	_WM8350_BATTERY_CHARGER_CONTROL_1@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	setbe	%al
	movq	_WM8350_BATTERY_CHARGER_CONTROL_3@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	setae	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_SECURITY,8,3            ## @WM8350_SECURITY
	.comm	_WM8350_UNLOCK_KEY,8,3          ## @WM8350_UNLOCK_KEY
	.comm	_WM8350_GPIO_FUNCTION_SELECT_1,8,3 ## @WM8350_GPIO_FUNCTION_SELECT_1
	.comm	_WM8350_GPIO_FUNCTION_SELECT_4,8,3 ## @WM8350_GPIO_FUNCTION_SELECT_4
	.comm	_WM8350_BATTERY_CHARGER_CONTROL_1,8,3 ## @WM8350_BATTERY_CHARGER_CONTROL_1
	.comm	_WM8350_BATTERY_CHARGER_CONTROL_3,8,3 ## @WM8350_BATTERY_CHARGER_CONTROL_3
	.no_dead_strip	_is_reg_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_reg_locked
_is_reg_locked:                         ; @is_reg_locked
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WM8350_SECURITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_SECURITY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	x9, [x0]
	ldr	x8, [x9, x8, lsl #3]
Lloh3:
	adrp	x9, _WM8350_UNLOCK_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WM8350_UNLOCK_KEY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
Lloh6:
	adrp	x8, _WM8350_GPIO_FUNCTION_SELECT_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM8350_GPIO_FUNCTION_SELECT_1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _WM8350_GPIO_FUNCTION_SELECT_4@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WM8350_GPIO_FUNCTION_SELECT_4@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #0, ls
	b.hs	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _WM8350_BATTERY_CHARGER_CONTROL_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM8350_BATTERY_CHARGER_CONTROL_1@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x1
Lloh15:
	adrp	x8, _WM8350_BATTERY_CHARGER_CONTROL_3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WM8350_BATTERY_CHARGER_CONTROL_3@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ccmp	x8, x1, #0, ls
	cset	w0, hs
	ret
LBB0_6:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_SECURITY,8,3            ; @WM8350_SECURITY
	.comm	_WM8350_UNLOCK_KEY,8,3          ; @WM8350_UNLOCK_KEY
	.comm	_WM8350_GPIO_FUNCTION_SELECT_1,8,3 ; @WM8350_GPIO_FUNCTION_SELECT_1
	.comm	_WM8350_GPIO_FUNCTION_SELECT_4,8,3 ; @WM8350_GPIO_FUNCTION_SELECT_4
	.comm	_WM8350_BATTERY_CHARGER_CONTROL_1,8,3 ; @WM8350_BATTERY_CHARGER_CONTROL_1
	.comm	_WM8350_BATTERY_CHARGER_CONTROL_3,8,3 ; @WM8350_BATTERY_CHARGER_CONTROL_3
	.no_dead_strip	_is_reg_locked
.subsections_via_symbols
