	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rc5t583_ext_power_req_config   ## -- Begin function rc5t583_ext_power_req_config
	.p2align	4, 0x90
_rc5t583_ext_power_req_config:          ## @rc5t583_ext_power_req_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EXT_PWR_REQ@GOTPCREL(%rip), %r8
	movl	%edx, %eax
	notl	%eax
	testl	%eax, (%r8)
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_RC5T583_EXT_PWRREQ1_CONTROL@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.6:
	popq	%rbp
	jmp	___rc5t583_set_ext_pwrreq1_control ## TAILCALL
LBB0_3:
	movq	_RC5T583_EXT_PWRREQ2_CONTROL@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.7:
	popq	%rbp
	jmp	___rc5t583_set_ext_pwrreq2_control ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_PWR_REQ,4,2                ## @EXT_PWR_REQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RC5T583_EXT_PWRREQ1_CONTROL,4,2 ## @RC5T583_EXT_PWRREQ1_CONTROL
	.comm	_RC5T583_EXT_PWRREQ2_CONTROL,4,2 ## @RC5T583_EXT_PWRREQ2_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rc5t583_ext_power_req_config   ; -- Begin function rc5t583_ext_power_req_config
	.p2align	2
_rc5t583_ext_power_req_config:          ; @rc5t583_ext_power_req_config
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EXT_PWR_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_PWR_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
Lloh6:
	adrp	x8, _RC5T583_EXT_PWRREQ1_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RC5T583_EXT_PWRREQ1_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_4
; %bb.3:
	b	___rc5t583_set_ext_pwrreq1_control
LBB0_4:
Lloh9:
	adrp	x8, _RC5T583_EXT_PWRREQ2_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RC5T583_EXT_PWRREQ2_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
	b	___rc5t583_set_ext_pwrreq2_control
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_PWR_REQ,4,2                ; @EXT_PWR_REQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RC5T583_EXT_PWRREQ1_CONTROL,4,2 ; @RC5T583_EXT_PWRREQ1_CONTROL
	.comm	_RC5T583_EXT_PWRREQ2_CONTROL,4,2 ; @RC5T583_EXT_PWRREQ2_CONTROL
.subsections_via_symbols
