	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc358764_pre_enable
_tc358764_pre_enable:                   ## @tc358764_pre_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_bridge_to_tc358764
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_ARRAY_SIZE
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_tc358764_reset
	movq	%rbx, %rdi
	callq	_tc358764_init
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movl	4(%rbx), %edi
	callq	_drm_panel_prepare
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error enabling regulators (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"error initializing bridge (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"error preparing panel (%d)\n"

	.no_dead_strip	_tc358764_pre_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc358764_pre_enable
_tc358764_pre_enable:                   ; @tc358764_pre_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_bridge_to_tc358764
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_ARRAY_SIZE
	ldr	w1, [x19, #8]
	bl	_regulator_bulk_enable
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	mov	x0, x19
	bl	_tc358764_reset
	mov	x0, x19
	bl	_tc358764_init
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_drm_panel_prepare
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x2, x0
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error enabling regulators (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"error initializing bridge (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"error preparing panel (%d)\n"

	.no_dead_strip	_tc358764_pre_enable
.subsections_via_symbols
