	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc5t583_clear_ext_power_req
_rc5t583_clear_ext_power_req:           ## @rc5t583_clear_ext_power_req
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edx, %edx
	cmpq	$0, (%rsi)
	setne	%dl
	movl	(%rdi), %edi
	movq	_RICOH_ONOFFSEL_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_rc5t583_write
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_warn
LBB0_2:
	movl	(%r14), %edi
	movq	_RICOH_SWCTL_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_rc5t583_write
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_warn
LBB0_4:
	movq	_RC5T583_SLPSEQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RC5T583_SLPSEQ11@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jle	LBB0_5
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rbx), %eax
	cmpl	(%r12), %ebx
	movl	%eax, %ebx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_rc5t583_write
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_warn
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RICOH_ONOFFSEL_REG,4,2         ## @RICOH_ONOFFSEL_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in writing reg %d error: %d\n"

	.comm	_RICOH_SWCTL_REG,4,2            ## @RICOH_SWCTL_REG
	.comm	_RC5T583_SLPSEQ1,4,2            ## @RC5T583_SLPSEQ1
	.comm	_RC5T583_SLPSEQ11,4,2           ## @RC5T583_SLPSEQ11
L_.str.1:                               ## @.str.1
	.asciz	"Error in writing reg 0x%02x error: %d\n"

	.no_dead_strip	_rc5t583_clear_ext_power_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rc5t583_clear_ext_power_req
_rc5t583_clear_ext_power_req:           ; @rc5t583_clear_ext_power_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x1]
	cmp	x8, #0
	cset	w2, ne
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _RICOH_ONOFFSEL_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RICOH_ONOFFSEL_REG@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_rc5t583_write
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x3, x0
	ldr	w0, [x19]
	ldr	w2, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	ldr	w0, [x19]
Lloh4:
	adrp	x20, _RICOH_SWCTL_REG@GOTPAGE
Lloh5:
	ldr	x20, [x20, _RICOH_SWCTL_REG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_rc5t583_write
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	x3, x0
	ldr	w0, [x19]
	ldr	w2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
Lloh8:
	adrp	x8, _RC5T583_SLPSEQ1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RC5T583_SLPSEQ1@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x22, _RC5T583_SLPSEQ11@GOTPAGE
Lloh12:
	ldr	x22, [x22, _RC5T583_SLPSEQ11@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	b.le	LBB0_6
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w20, #1
	ldr	w9, [x22]
	cmp	w20, w9
	mov	x20, x8
	b.ge	LBB0_5
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	mov	w2, #0
	bl	_rc5t583_write
	tbz	w0, #31, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x3, x0
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RICOH_ONOFFSEL_REG,4,2         ; @RICOH_ONOFFSEL_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in writing reg %d error: %d\n"

	.comm	_RICOH_SWCTL_REG,4,2            ; @RICOH_SWCTL_REG
	.comm	_RC5T583_SLPSEQ1,4,2            ; @RC5T583_SLPSEQ1
	.comm	_RC5T583_SLPSEQ11,4,2           ; @RC5T583_SLPSEQ11
l_.str.1:                               ; @.str.1
	.asciz	"Error in writing reg 0x%02x error: %d\n"

	.no_dead_strip	_rc5t583_clear_ext_power_req
.subsections_via_symbols
