	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_turn_on_status
_show_turn_on_status:                   ## @show_turn_on_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_AB8500_SYS_CTRL1_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AB8500_TURN_ON_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_get_register_interruptible
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_ab9540
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_on_stat_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_turn_on_stat_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_turn_on_stat_set@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_3:
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AB8500_SYS_CTRL1_BLOCK,4,2     ## @AB8500_SYS_CTRL1_BLOCK
	.comm	_AB8500_TURN_ON_STATUS,4,2      ## @AB8500_TURN_ON_STATUS
	.comm	_on_stat_lock,4,2               ## @on_stat_lock
	.comm	_turn_on_stat_mask,4,2          ## @turn_on_stat_mask
	.comm	_turn_on_stat_set,4,2           ## @turn_on_stat_set
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%#x\n"

	.no_dead_strip	_show_turn_on_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_turn_on_status
_show_turn_on_status:                   ; @show_turn_on_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _AB8500_SYS_CTRL1_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AB8500_SYS_CTRL1_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AB8500_TURN_ON_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AB8500_TURN_ON_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_get_register_interruptible
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_is_ab9540
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x20, _on_stat_lock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _on_stat_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _turn_on_stat_mask@GOTPAGE
Lloh9:
	ldr	x9, [x9, _turn_on_stat_mask@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh11:
	adrp	x9, _turn_on_stat_set@GOTPAGE
Lloh12:
	ldr	x9, [x9, _turn_on_stat_set@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	mov	x0, x20
	bl	_spin_unlock
LBB0_3:
	ldr	w2, [sp, #12]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AB8500_SYS_CTRL1_BLOCK,4,2     ; @AB8500_SYS_CTRL1_BLOCK
	.comm	_AB8500_TURN_ON_STATUS,4,2      ; @AB8500_TURN_ON_STATUS
	.comm	_on_stat_lock,4,2               ; @on_stat_lock
	.comm	_turn_on_stat_mask,4,2          ; @turn_on_stat_mask
	.comm	_turn_on_stat_set,4,2           ; @turn_on_stat_set
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%#x\n"

	.no_dead_strip	_show_turn_on_status
.subsections_via_symbols
