	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps80031_init_ext_control
_tps80031_init_ext_control:             ## @tps80031_init_ext_control
	.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	(%rdi), %r14
	movq	_TPS80031_SLAVE_ID1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_TPS80031_PREQ1_RES_ASS_A@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	incq	%rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$2, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$3, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$4, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$5, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$6, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$7, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movl	(%r13), %esi
	movq	(%r12), %rdx
	addq	$8, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movl	(%r13), %esi
	movq	_TPS80031_PHOENIX_MSK_TRANSITION@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movl	$224, %ecx
	callq	_tps80031_set_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_22
## %bb.20:
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_21
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r15d
	movl	$1, %ebx
	jmp	LBB0_2
LBB0_6:
	movl	%eax, %r15d
	movl	$2, %ebx
	jmp	LBB0_2
LBB0_8:
	movl	%eax, %r15d
	movl	$3, %ebx
	jmp	LBB0_2
LBB0_10:
	movl	%eax, %r15d
	movl	$4, %ebx
	jmp	LBB0_2
LBB0_12:
	movl	%eax, %r15d
	movl	$5, %ebx
	jmp	LBB0_2
LBB0_14:
	movl	%eax, %r15d
	movl	$6, %ebx
	jmp	LBB0_2
LBB0_16:
	movl	%eax, %r15d
	movl	$7, %ebx
	jmp	LBB0_2
LBB0_18:
	movl	%eax, %r15d
	movl	$8, %ebx
LBB0_2:
	addq	(%r12), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_21:
	movl	%r15d, %ecx
	callq	_dev_err
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS80031_SLAVE_ID1,4,2         ## @TPS80031_SLAVE_ID1
	.comm	_TPS80031_PREQ1_RES_ASS_A,8,3   ## @TPS80031_PREQ1_RES_ASS_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg 0x%02x write failed, err = %d\n"

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

	.no_dead_strip	_tps80031_init_ext_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps80031_init_ext_control
_tps80031_init_ext_control:             ; @tps80031_init_ext_control
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _TPS80031_SLAVE_ID1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TPS80031_SLAVE_ID1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x21, _TPS80031_PREQ1_RES_ASS_A@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TPS80031_PREQ1_RES_ASS_A@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #1
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_12
; %bb.2:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #2
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_13
; %bb.3:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #3
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #4
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_15
; %bb.5:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #5
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_16
; %bb.6:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #6
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_17
; %bb.7:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #7
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_18
; %bb.8:
	ldr	w1, [x22]
	ldr	x8, [x21]
	add	x2, x8, #8
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	tbnz	w0, #31, LBB0_19
; %bb.9:
	ldr	w1, [x22]
Lloh4:
	adrp	x21, _TPS80031_PHOENIX_MSK_TRANSITION@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TPS80031_PHOENIX_MSK_TRANSITION@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	x0, x19
	mov	w3, #224
	bl	_tps80031_set_bits
	mov	x20, x0
	tbz	w0, #31, LBB0_22
; %bb.10:
	ldr	x2, [x21]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_11:
	mov	x20, x0
	mov	x8, #0
	b	LBB0_20
LBB0_12:
	mov	x20, x0
	mov	w8, #1
	b	LBB0_20
LBB0_13:
	mov	x20, x0
	mov	w8, #2
	b	LBB0_20
LBB0_14:
	mov	x20, x0
	mov	w8, #3
	b	LBB0_20
LBB0_15:
	mov	x20, x0
	mov	w8, #4
	b	LBB0_20
LBB0_16:
	mov	x20, x0
	mov	w8, #5
	b	LBB0_20
LBB0_17:
	mov	x20, x0
	mov	w8, #6
	b	LBB0_20
LBB0_18:
	mov	x20, x0
	mov	w8, #7
	b	LBB0_20
LBB0_19:
	mov	x20, x0
	mov	w8, #8
LBB0_20:
	ldr	x9, [x21]
	add	x2, x9, x8
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_21:
	mov	x0, x19
	mov	x3, x20
	bl	_dev_err
LBB0_22:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS80031_SLAVE_ID1,4,2         ; @TPS80031_SLAVE_ID1
	.comm	_TPS80031_PREQ1_RES_ASS_A,8,3   ; @TPS80031_PREQ1_RES_ASS_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg 0x%02x write failed, err = %d\n"

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

	.no_dead_strip	_tps80031_init_ext_control
.subsections_via_symbols
