	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps80031_ext_power_req_config  ## -- Begin function tps80031_ext_power_req_config
	.p2align	4, 0x90
_tps80031_ext_power_req_config:         ## @tps80031_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TPS80031_EXT_PWR_REQ@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_TPS80031_PWR_REQ_INPUT_PREQ1@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_TPS80031_PREQ1_RES_ASS_A@GOTPCREL(%rip), %rax
	movl	%edx, %r14d
	sarl	$3, %r14d
	addl	(%rax), %r14d
	movl	$5, %r15d
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_4:
	movq	_TPS80031_PWR_REQ_INPUT_PREQ2@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_TPS80031_PREQ2_RES_ASS_A@GOTPCREL(%rip), %rax
	movl	%edx, %r14d
	sarl	$3, %r14d
	addl	(%rax), %r14d
	movl	$6, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_TPS80031_PWR_REQ_INPUT_PREQ3@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_7
## %bb.8:
	movq	_TPS80031_PREQ3_RES_ASS_A@GOTPCREL(%rip), %rax
	movl	%edx, %r14d
	sarl	$3, %r14d
	addl	(%rax), %r14d
	movl	$7, %r15d
	jmp	LBB0_9
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_9:
	movq	_TPS80031_SLAVE_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	$7, %edx
	movl	%edx, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_tps80031_set_bits
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	_TPS80031_SLAVE_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TPS80031_PHOENIX_MSK_TRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_tps80031_clr_bits
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	_TPS80031_PWR_REQ_INPUT_PREQ2@GOTPCREL(%rip), %rax
	movq	_TPS80031_PWR_REQ_INPUT_PREQ3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movq	_TPS80031_SLAVE_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r13, %rcx
	je	LBB0_15
## %bb.14:
	movq	_TPS80031_STATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_18
LBB0_12:
	movl	%eax, %ebx
	movq	_TPS80031_PHOENIX_MSK_TRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_19
LBB0_15:
	movq	_TPS80031_TRANS_SLEEP_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TPS80031_TRANS_SLEEP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
LBB0_16:
	callq	_tps80031_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_20
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
LBB0_18:
	movq	%r12, %rdi
	movl	%r14d, %edx
LBB0_19:
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS80031_EXT_PWR_REQ,8,3       ## @TPS80031_EXT_PWR_REQ
	.comm	_TPS80031_PWR_REQ_INPUT_PREQ1,8,3 ## @TPS80031_PWR_REQ_INPUT_PREQ1
	.comm	_TPS80031_PREQ1_RES_ASS_A,4,2   ## @TPS80031_PREQ1_RES_ASS_A
	.comm	_TPS80031_PWR_REQ_INPUT_PREQ2,8,3 ## @TPS80031_PWR_REQ_INPUT_PREQ2
	.comm	_TPS80031_PREQ2_RES_ASS_A,4,2   ## @TPS80031_PREQ2_RES_ASS_A
	.comm	_TPS80031_PWR_REQ_INPUT_PREQ3,8,3 ## @TPS80031_PWR_REQ_INPUT_PREQ3
	.comm	_TPS80031_PREQ3_RES_ASS_A,4,2   ## @TPS80031_PREQ3_RES_ASS_A
	.comm	_TPS80031_SLAVE_ID1,4,2         ## @TPS80031_SLAVE_ID1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg 0x%02x setbit failed, err = %d\n"

	.comm	_TPS80031_PHOENIX_MSK_TRANSITION,4,2 ## @TPS80031_PHOENIX_MSK_TRANSITION
L_.str.1:                               ## @.str.1
	.asciz	"reg 0x%02x clrbit failed, err = %d\n"

	.comm	_TPS80031_STATE_MASK,4,2        ## @TPS80031_STATE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"reg 0x%02x update failed, err = %d\n"

	.comm	_TPS80031_TRANS_SLEEP_OFF,4,2   ## @TPS80031_TRANS_SLEEP_OFF
	.comm	_TPS80031_TRANS_SLEEP_MASK,4,2  ## @TPS80031_TRANS_SLEEP_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps80031_ext_power_req_config  ; -- Begin function tps80031_ext_power_req_config
	.p2align	2
_tps80031_ext_power_req_config:         ; @tps80031_ext_power_req_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _TPS80031_EXT_PWR_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS80031_EXT_PWR_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _TPS80031_PWR_REQ_INPUT_PREQ1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPS80031_PWR_REQ_INPUT_PREQ1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x1
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _TPS80031_PREQ1_RES_ASS_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPS80031_PREQ1_RES_ASS_A@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w24, w8, w2, asr #3
	mov	w25, #5
	b	LBB0_9
LBB0_3:
	mov	w23, #0
	b	LBB0_17
LBB0_4:
Lloh9:
	adrp	x8, _TPS80031_PWR_REQ_INPUT_PREQ2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TPS80031_PWR_REQ_INPUT_PREQ2@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _TPS80031_PREQ2_RES_ASS_A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TPS80031_PREQ2_RES_ASS_A@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w24, w8, w2, asr #3
	mov	w25, #6
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _TPS80031_PWR_REQ_INPUT_PREQ3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TPS80031_PWR_REQ_INPUT_PREQ3@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _TPS80031_PREQ3_RES_ASS_A@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TPS80031_PREQ3_RES_ASS_A@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w24, w8, w2, asr #3
	mov	w25, #7
	b	LBB0_9
LBB0_8:
	mov	w24, #0
	mov	w25, #0
LBB0_9:
Lloh21:
	adrp	x26, _TPS80031_SLAVE_ID1@GOTPAGE
Lloh22:
	ldr	x26, [x26, _TPS80031_SLAVE_ID1@GOTPAGEOFF]
	ldr	w23, [x26]
	and	w0, w2, #0x7
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_tps80031_set_bits
	tbnz	w0, #31, LBB0_14
; %bb.10:
	ldr	w23, [x26]
Lloh23:
	adrp	x27, _TPS80031_PHOENIX_MSK_TRANSITION@GOTPAGE
Lloh24:
	ldr	x27, [x27, _TPS80031_PHOENIX_MSK_TRANSITION@GOTPAGEOFF]
	ldr	w24, [x27]
	mov	x0, x25
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_tps80031_clr_bits
	tbnz	w0, #31, LBB0_15
; %bb.11:
Lloh25:
	adrp	x8, _TPS80031_PWR_REQ_INPUT_PREQ2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TPS80031_PWR_REQ_INPUT_PREQ2@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _TPS80031_PWR_REQ_INPUT_PREQ3@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TPS80031_PWR_REQ_INPUT_PREQ3@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	w1, [x26]
	tst	x8, x22
	b.eq	LBB0_18
; %bb.12:
Lloh31:
	adrp	x8, _TPS80031_STATE_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TPS80031_STATE_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_tps80031_update
	mov	x23, x0
	tbz	w0, #31, LBB0_17
; %bb.13:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	b	LBB0_16
LBB0_14:
	mov	x23, x0
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	b	LBB0_16
LBB0_15:
	mov	x23, x0
	ldr	w2, [x27]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_16:
	mov	x3, x23
	bl	_dev_err
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh40:
	adrp	x8, _TPS80031_TRANS_SLEEP_OFF@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TPS80031_TRANS_SLEEP_OFF@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _TPS80031_TRANS_SLEEP_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TPS80031_TRANS_SLEEP_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_tps80031_update
	mov	x23, x0
	tbz	w0, #31, LBB0_17
; %bb.19:
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS80031_EXT_PWR_REQ,8,3       ; @TPS80031_EXT_PWR_REQ
	.comm	_TPS80031_PWR_REQ_INPUT_PREQ1,8,3 ; @TPS80031_PWR_REQ_INPUT_PREQ1
	.comm	_TPS80031_PREQ1_RES_ASS_A,4,2   ; @TPS80031_PREQ1_RES_ASS_A
	.comm	_TPS80031_PWR_REQ_INPUT_PREQ2,8,3 ; @TPS80031_PWR_REQ_INPUT_PREQ2
	.comm	_TPS80031_PREQ2_RES_ASS_A,4,2   ; @TPS80031_PREQ2_RES_ASS_A
	.comm	_TPS80031_PWR_REQ_INPUT_PREQ3,8,3 ; @TPS80031_PWR_REQ_INPUT_PREQ3
	.comm	_TPS80031_PREQ3_RES_ASS_A,4,2   ; @TPS80031_PREQ3_RES_ASS_A
	.comm	_TPS80031_SLAVE_ID1,4,2         ; @TPS80031_SLAVE_ID1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg 0x%02x setbit failed, err = %d\n"

	.comm	_TPS80031_PHOENIX_MSK_TRANSITION,4,2 ; @TPS80031_PHOENIX_MSK_TRANSITION
l_.str.1:                               ; @.str.1
	.asciz	"reg 0x%02x clrbit failed, err = %d\n"

	.comm	_TPS80031_STATE_MASK,4,2        ; @TPS80031_STATE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"reg 0x%02x update failed, err = %d\n"

	.comm	_TPS80031_TRANS_SLEEP_OFF,4,2   ; @TPS80031_TRANS_SLEEP_OFF
	.comm	_TPS80031_TRANS_SLEEP_MASK,4,2  ; @TPS80031_TRANS_SLEEP_MASK
.subsections_via_symbols
