	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_wakeups
_config_wakeups:                        ## @config_wakeups
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MB0H_CONFIG_WAKEUPS_EXE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB0H_CONFIG_WAKEUPS_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mb0_transfer@GOTPCREL(%rip), %rax
	movq	_WAKEUP_BIT_AC_WAKE_ACK@GOTPCREL(%rip), %rcx
	movq	_WAKEUP_BIT_AC_SLEEP_ACK@GOTPCREL(%rip), %rdx
	movl	4(%rax), %r15d
	movl	8(%rax), %r14d
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	orl	(%rdx), %r15d
	cmpl	_config_wakeups.last_dbb_events(%rip), %r15d
	jne	LBB0_2
## %bb.1:
	cmpl	_config_wakeups.last_abb_events(%rip), %r14d
	je	LBB0_8
LBB0_2:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_PRCM_MBOX_CPU_VAL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_readl
	movl	%eax, %r13d
	xorl	%edi, %edi
	callq	_MBOX_BIT
	testl	%r13d, %eax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r12), %edi
	callq	_readl
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_MBOX_BIT
	testl	%ebx, %eax
	jne	LBB0_3
LBB0_4:
	movq	_tcdm_base@GOTPCREL(%rip), %r13
	movq	_PRCM_REQ_MB0_WAKEUP_8500@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_PRCM_REQ_MB0_WAKEUP_4500@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_PRCM_MBOX_HEADER_REQ_MB0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_writeb
	xorl	%edi, %edi
	callq	_MBOX_BIT
	movq	_PRCM_MBOX_CPU_SET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writel
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_readl
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_MBOX_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_6
LBB0_7:
	movq	_PRCM_REQ_MB0_WAKEUP_8500@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_PRCM_REQ_MB0_WAKEUP_4500@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_PRCM_MBOX_HEADER_REQ_MB0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_writeb
	xorl	%edi, %edi
	callq	_MBOX_BIT
	movq	_PRCM_MBOX_CPU_SET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	%r15d, _config_wakeups.last_dbb_events(%rip)
	movl	%r14d, _config_wakeups.last_abb_events(%rip)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB0H_CONFIG_WAKEUPS_EXE,4,2    ## @MB0H_CONFIG_WAKEUPS_EXE
	.comm	_MB0H_CONFIG_WAKEUPS_SLEEP,4,2  ## @MB0H_CONFIG_WAKEUPS_SLEEP
.zerofill __DATA,__bss,_config_wakeups.last_dbb_events,4,2 ## @config_wakeups.last_dbb_events
.zerofill __DATA,__bss,_config_wakeups.last_abb_events,4,2 ## @config_wakeups.last_abb_events
	.comm	_mb0_transfer,12,2              ## @mb0_transfer
	.comm	_WAKEUP_BIT_AC_WAKE_ACK,4,2     ## @WAKEUP_BIT_AC_WAKE_ACK
	.comm	_WAKEUP_BIT_AC_SLEEP_ACK,4,2    ## @WAKEUP_BIT_AC_SLEEP_ACK
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ## @PRCM_MBOX_CPU_VAL
	.comm	_tcdm_base,8,3                  ## @tcdm_base
	.comm	_PRCM_REQ_MB0_WAKEUP_8500,8,3   ## @PRCM_REQ_MB0_WAKEUP_8500
	.comm	_PRCM_REQ_MB0_WAKEUP_4500,8,3   ## @PRCM_REQ_MB0_WAKEUP_4500
	.comm	_PRCM_MBOX_HEADER_REQ_MB0,8,3   ## @PRCM_MBOX_HEADER_REQ_MB0
	.comm	_PRCM_MBOX_CPU_SET,8,3          ## @PRCM_MBOX_CPU_SET
	.no_dead_strip	_config_wakeups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_wakeups
_config_wakeups:                        ; @config_wakeups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _mb0_transfer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mb0_transfer@GOTPAGEOFF]
	ldp	w9, w10, [x8]
Lloh2:
	adrp	x11, _WAKEUP_BIT_AC_WAKE_ACK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _WAKEUP_BIT_AC_WAKE_ACK@GOTPAGEOFF]
Lloh4:
	adrp	x12, _WAKEUP_BIT_AC_SLEEP_ACK@GOTPAGE
Lloh5:
	ldr	x12, [x12, _WAKEUP_BIT_AC_SLEEP_ACK@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
Lloh7:
	ldr	w12, [x12]
	orr	w9, w10, w9
	orr	w9, w9, w11
	orr	w19, w9, w12
	ldr	w20, [x8, #8]
Lloh8:
	adrp	x8, _config_wakeups.last_dbb_events@PAGE
Lloh9:
	ldr	w8, [x8, _config_wakeups.last_dbb_events@PAGEOFF]
	adrp	x25, _config_wakeups.last_abb_events@PAGE
	ldr	w9, [x25, _config_wakeups.last_abb_events@PAGEOFF]
	cmp	w19, w8
	ccmp	w20, w9, #0, eq
	b.eq	LBB0_8
; %bb.1:
Lloh10:
	adrp	x8, _MB0H_CONFIG_WAKEUPS_EXE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MB0H_CONFIG_WAKEUPS_EXE@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _MB0H_CONFIG_WAKEUPS_SLEEP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MB0H_CONFIG_WAKEUPS_SLEEP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh16:
	adrp	x26, _PRCM_MBOX_CPU_VAL@GOTPAGE
Lloh17:
	ldr	x26, [x26, _PRCM_MBOX_CPU_VAL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_readl
	mov	x23, x0
	mov	w0, #0
	bl	_MBOX_BIT
	tst	w0, w23
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	b	LBB0_2
LBB0_4:
Lloh18:
	adrp	x23, _tcdm_base@GOTPAGE
Lloh19:
	ldr	x23, [x23, _tcdm_base@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh20:
	adrp	x27, _PRCM_REQ_MB0_WAKEUP_8500@GOTPAGE
Lloh21:
	ldr	x27, [x27, _PRCM_REQ_MB0_WAKEUP_8500@GOTPAGEOFF]
	ldr	x9, [x27]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	ldr	x8, [x23]
Lloh22:
	adrp	x28, _PRCM_REQ_MB0_WAKEUP_4500@GOTPAGE
Lloh23:
	ldr	x28, [x28, _PRCM_REQ_MB0_WAKEUP_4500@GOTPAGEOFF]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x23]
Lloh24:
	adrp	x21, _PRCM_MBOX_HEADER_REQ_MB0@GOTPAGE
Lloh25:
	ldr	x21, [x21, _PRCM_MBOX_HEADER_REQ_MB0@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writeb
	mov	w0, #0
	bl	_MBOX_BIT
Lloh26:
	adrp	x24, _PRCM_MBOX_CPU_SET@GOTPAGE
Lloh27:
	ldr	x24, [x24, _PRCM_MBOX_CPU_SET@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_writel
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_readl
	mov	x22, x0
	mov	w0, #0
	bl	_MBOX_BIT
	tst	w0, w22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	b	LBB0_5
LBB0_7:
	ldr	x8, [x23]
	ldr	x9, [x27]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	ldr	x8, [x23]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x23]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_writeb
	mov	w0, #0
	bl	_MBOX_BIT
	ldr	x1, [x24]
	bl	_writel
	adrp	x8, _config_wakeups.last_dbb_events@PAGE
	str	w19, [x8, _config_wakeups.last_dbb_events@PAGEOFF]
	str	w20, [x25, _config_wakeups.last_abb_events@PAGEOFF]
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MB0H_CONFIG_WAKEUPS_EXE,4,2    ; @MB0H_CONFIG_WAKEUPS_EXE
	.comm	_MB0H_CONFIG_WAKEUPS_SLEEP,4,2  ; @MB0H_CONFIG_WAKEUPS_SLEEP
.zerofill __DATA,__bss,_config_wakeups.last_dbb_events,4,2 ; @config_wakeups.last_dbb_events
.zerofill __DATA,__bss,_config_wakeups.last_abb_events,4,2 ; @config_wakeups.last_abb_events
	.comm	_mb0_transfer,12,2              ; @mb0_transfer
	.comm	_WAKEUP_BIT_AC_WAKE_ACK,4,2     ; @WAKEUP_BIT_AC_WAKE_ACK
	.comm	_WAKEUP_BIT_AC_SLEEP_ACK,4,2    ; @WAKEUP_BIT_AC_SLEEP_ACK
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ; @PRCM_MBOX_CPU_VAL
	.comm	_tcdm_base,8,3                  ; @tcdm_base
	.comm	_PRCM_REQ_MB0_WAKEUP_8500,8,3   ; @PRCM_REQ_MB0_WAKEUP_8500
	.comm	_PRCM_REQ_MB0_WAKEUP_4500,8,3   ; @PRCM_REQ_MB0_WAKEUP_4500
	.comm	_PRCM_MBOX_HEADER_REQ_MB0,8,3   ; @PRCM_MBOX_HEADER_REQ_MB0
	.comm	_PRCM_MBOX_CPU_SET,8,3          ; @PRCM_MBOX_CPU_SET
	.no_dead_strip	_config_wakeups
.subsections_via_symbols
