	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_sleep
_dib8000_sleep:                         ## @dib8000_sleep
	.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, %r14
	movq	(%rdi), %r12
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %r15
	cmpq	$2, (%r15)
	jb	LBB0_5
## %bb.1:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	*(%rdi)
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_3
LBB0_5:
	cmpl	$32912, (%r12)                  ## imm = 0x8090
	je	LBB0_7
## %bb.6:
	movq	_OUTMODE_HIGH_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dib8000_set_output_mode
LBB0_7:
	movq	_DIB8000_POWER_INTERFACE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib8000_set_power_mode
	movq	_DIBX000_SLOW_ADC_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib8000_set_adc_state
	movl	%eax, %r14d
	movq	_DIBX000_ADC_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib8000_set_adc_state
	orl	%r14d, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.comm	_OUTMODE_HIGH_Z,4,2             ## @OUTMODE_HIGH_Z
	.comm	_DIB8000_POWER_INTERFACE_ONLY,4,2 ## @DIB8000_POWER_INTERFACE_ONLY
	.comm	_DIBX000_SLOW_ADC_OFF,4,2       ## @DIBX000_SLOW_ADC_OFF
	.comm	_DIBX000_ADC_OFF,4,2            ## @DIBX000_ADC_OFF
	.no_dead_strip	_dib8000_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_sleep
_dib8000_sleep:                         ; @dib8000_sleep
	.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	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.1:
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x0]
	blr	x8
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_5:
	ldr	w8, [x19]
	mov	w9, #32912
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _OUTMODE_HIGH_Z@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OUTMODE_HIGH_Z@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dib8000_set_output_mode
LBB0_7:
Lloh5:
	adrp	x8, _DIB8000_POWER_INTERFACE_ONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIB8000_POWER_INTERFACE_ONLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_power_mode
Lloh8:
	adrp	x8, _DIBX000_SLOW_ADC_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIBX000_SLOW_ADC_OFF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_adc_state
	mov	x20, x0
Lloh11:
	adrp	x8, _DIBX000_ADC_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIBX000_ADC_OFF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_adc_state
	orr	w0, w0, w20
LBB0_8:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.comm	_OUTMODE_HIGH_Z,4,2             ; @OUTMODE_HIGH_Z
	.comm	_DIB8000_POWER_INTERFACE_ONLY,4,2 ; @DIB8000_POWER_INTERFACE_ONLY
	.comm	_DIBX000_SLOW_ADC_OFF,4,2       ; @DIBX000_SLOW_ADC_OFF
	.comm	_DIBX000_ADC_OFF,4,2            ; @DIBX000_ADC_OFF
	.no_dead_strip	_dib8000_sleep
.subsections_via_symbols
