	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_poweron
_anx78xx_poweron:                       ## @anx78xx_poweron
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
LBB0_4:
	movl	16(%rbx), %edi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movq	8(%rbx), %rax
	movq	_I2C_IDX_TX_P2@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_HDCP_PD@GOTPCREL(%rip), %rax
	movq	_SP_AUDIO_PD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SP_POWERDOWN_CTRL_REG@GOTPCREL(%rip), %r15
	movq	_SP_VIDEO_PD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	_SP_LINK_PD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_anx78xx_set_bits
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%r15), %esi
	movq	_SP_REGISTER_PD@GOTPCREL(%rip), %rax
	movq	_SP_TOTAL_PD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_anx78xx_clear_bits
	movl	$1, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable DVDD10 regulator: %d\n"

	.comm	_I2C_IDX_TX_P2,8,3              ## @I2C_IDX_TX_P2
	.comm	_SP_POWERDOWN_CTRL_REG,4,2      ## @SP_POWERDOWN_CTRL_REG
	.comm	_SP_HDCP_PD,4,2                 ## @SP_HDCP_PD
	.comm	_SP_AUDIO_PD,4,2                ## @SP_AUDIO_PD
	.comm	_SP_VIDEO_PD,4,2                ## @SP_VIDEO_PD
	.comm	_SP_LINK_PD,4,2                 ## @SP_LINK_PD
	.comm	_SP_REGISTER_PD,4,2             ## @SP_REGISTER_PD
	.comm	_SP_TOTAL_PD,4,2                ## @SP_TOTAL_PD
	.no_dead_strip	_anx78xx_poweron
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_poweron
_anx78xx_poweron:                       ; @anx78xx_poweron
	.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	w0, [x0]
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_regulator_enable
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_DRM_ERROR
LBB0_4:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
LBB0_5:
	ldr	w0, [x19, #16]
	mov	w20, #1
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19, #20]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x21, _I2C_IDX_TX_P2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _I2C_IDX_TX_P2@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh4:
	adrp	x22, _SP_POWERDOWN_CTRL_REG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SP_POWERDOWN_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _SP_HDCP_PD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SP_HDCP_PD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SP_AUDIO_PD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SP_AUDIO_PD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SP_VIDEO_PD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SP_VIDEO_PD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SP_LINK_PD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SP_LINK_PD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_anx78xx_set_bits
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh18:
	adrp	x8, _SP_REGISTER_PD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SP_REGISTER_PD@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SP_TOTAL_PD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SP_TOTAL_PD@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_anx78xx_clear_bits
	str	w20, [x19]
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable DVDD10 regulator: %d\n"

	.comm	_I2C_IDX_TX_P2,8,3              ; @I2C_IDX_TX_P2
	.comm	_SP_POWERDOWN_CTRL_REG,4,2      ; @SP_POWERDOWN_CTRL_REG
	.comm	_SP_HDCP_PD,4,2                 ; @SP_HDCP_PD
	.comm	_SP_AUDIO_PD,4,2                ; @SP_AUDIO_PD
	.comm	_SP_VIDEO_PD,4,2                ; @SP_VIDEO_PD
	.comm	_SP_LINK_PD,4,2                 ; @SP_LINK_PD
	.comm	_SP_REGISTER_PD,4,2             ; @SP_REGISTER_PD
	.comm	_SP_TOTAL_PD,4,2                ; @SP_TOTAL_PD
	.no_dead_strip	_anx78xx_poweron
.subsections_via_symbols
