	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_pre_enable
_mic_pre_enable:                        ## @mic_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
	movq	(%rdi), %rbx
	movq	_mic_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_7:
	movq	_mic_mutex@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	movl	4(%rbx), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mic_set_path
	movq	%rbx, %rdi
	callq	_mic_sw_reset
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movl	4(%rbx), %edi
	callq	_pm_runtime_put
	jmp	LBB0_7
LBB0_4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_mic_set_porch_timing
LBB0_6:
	movq	%rbx, %rdi
	callq	_mic_set_img_size
	movq	%rbx, %rdi
	callq	_mic_set_output_timing
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mic_set_reg_on
	movl	$1, (%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mic_mutex,4,2                  ## @mic_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reset\n"

	.no_dead_strip	_mic_pre_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_pre_enable
_mic_pre_enable:                        ; @mic_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
	ldr	x19, [x0]
Lloh0:
	adrp	x0, _mic_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mic_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_2
LBB0_1:
Lloh2:
	adrp	x0, _mic_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mic_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_1
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_mic_set_path
	mov	x0, x19
	bl	_mic_sw_reset
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put
	b	LBB0_1
LBB0_5:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_mic_set_porch_timing
LBB0_7:
	mov	x0, x19
	bl	_mic_set_img_size
	mov	x0, x19
	bl	_mic_set_output_timing
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_mic_set_reg_on
	str	w20, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mic_mutex,4,2                  ; @mic_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reset\n"

	.no_dead_strip	_mic_pre_enable
.subsections_via_symbols
