	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_autopoll
_pmu_autopoll:                          ## @pmu_autopoll
	.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	_pmu_fully_inited@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edi, %r10d
	testl	%edi, %edi
	je	LBB0_4
## %bb.3:
	movq	_adb_dev_map@GOTPCREL(%rip), %rax
	movl	%r10d, (%rax)
	movq	_PMU_ADB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r10d, %ebx
	sarl	$8, %ebx
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	movl	$5, %edx
	xorl	%r8d, %r8d
	movl	$134, %r9d
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_pmu_request
	addq	$16, %rsp
	movl	$2, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_PMU_ADB_POLL_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_pmu_request
LBB0_5:
	movq	_pmu_adb_flags@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	xorl	%ebx, %ebx
	cmpl	$0, -16(%rbp)
	jne	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pmu_poll
	cmpl	$0, -16(%rbp)
	je	LBB0_7
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_fully_inited,4,2           ## @pmu_fully_inited
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_adb_dev_map,4,2                ## @adb_dev_map
	.comm	_PMU_ADB_CMD,4,2                ## @PMU_ADB_CMD
	.comm	_pmu_adb_flags,4,2              ## @pmu_adb_flags
	.comm	_PMU_ADB_POLL_OFF,4,2           ## @PMU_ADB_POLL_OFF
	.no_dead_strip	_pmu_autopoll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_autopoll
_pmu_autopoll:                          ; @pmu_autopoll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _pmu_fully_inited@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmu_fully_inited@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	cbz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _adb_dev_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adb_dev_map@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
Lloh6:
	adrp	x8, _PMU_ADB_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PMU_ADB_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	asr	w8, w0, #8
	stp	x8, x0, [sp, #16]
	mov	w8, #134
	stp	xzr, x8, [sp]
	sub	x0, x29, #8
	mov	x1, #0
	mov	w2, #5
	bl	_pmu_request
	mov	w8, #2
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _PMU_ADB_POLL_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PMU_ADB_POLL_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	sub	x0, x29, #8
	mov	x1, #0
	mov	w2, #1
	bl	_pmu_request
	mov	w8, #0
LBB0_5:
Lloh15:
	adrp	x9, _pmu_adb_flags@GOTPAGE
Lloh16:
	ldr	x9, [x9, _pmu_adb_flags@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	ldur	w8, [x29, #-8]
	cbnz	w8, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pmu_poll
	ldur	w8, [x29, #-8]
	cbz	w8, LBB0_6
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_fully_inited,4,2           ; @pmu_fully_inited
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_adb_dev_map,4,2                ; @adb_dev_map
	.comm	_PMU_ADB_CMD,4,2                ; @PMU_ADB_CMD
	.comm	_pmu_adb_flags,4,2              ; @pmu_adb_flags
	.comm	_PMU_ADB_POLL_OFF,4,2           ; @PMU_ADB_POLL_OFF
	.no_dead_strip	_pmu_autopoll
.subsections_via_symbols
