	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_wakeup
_dib8000_wakeup:                        ## @dib8000_wakeup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_DIB8000_POWER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib8000_set_power_mode
	movq	_DIBX000_ADC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib8000_set_adc_state
	movq	_DIBX000_SLOW_ADC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib8000_set_adc_state
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
LBB0_2:
	cmpl	$32912, (%r12)                  ## imm = 0x8090
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_dib8000_sad_calib
LBB0_4:
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	cmpq	$2, (%r15)
	jb	LBB0_10
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	*(%rdi)
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_7
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIB8000_POWER_ALL,4,2          ## @DIB8000_POWER_ALL
	.comm	_DIBX000_ADC_ON,4,2             ## @DIBX000_ADC_ON
	.comm	_DIBX000_SLOW_ADC_ON,4,2        ## @DIBX000_SLOW_ADC_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not start Slow ADC\n"

	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.no_dead_strip	_dib8000_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_wakeup
_dib8000_wakeup:                        ; @dib8000_wakeup
	.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	x8, _DIB8000_POWER_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIB8000_POWER_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_power_mode
Lloh3:
	adrp	x8, _DIBX000_ADC_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIBX000_ADC_ON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_adc_state
Lloh6:
	adrp	x8, _DIBX000_SLOW_ADC_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIBX000_SLOW_ADC_ON@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_adc_state
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
LBB0_2:
	ldr	w8, [x19]
	mov	w9, #32912
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dib8000_sad_calib
LBB0_4:
Lloh11:
	adrp	x20, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #2
	b.lo	LBB0_9
; %bb.5:
	mov	w21, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0]
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DIB8000_POWER_ALL,4,2          ; @DIB8000_POWER_ALL
	.comm	_DIBX000_ADC_ON,4,2             ; @DIBX000_ADC_ON
	.comm	_DIBX000_SLOW_ADC_ON,4,2        ; @DIBX000_SLOW_ADC_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not start Slow ADC\n"

	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.no_dead_strip	_dib8000_wakeup
.subsections_via_symbols
