	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_attach
_pmu_attach:                            ## @pmu_attach
	.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
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r14d, 16(%rax)
	movq	_pmu_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_9:
	movl	%r14d, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MAX_RLEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r13,2), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_INTR_TYPE_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_pmu_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %rax
	addq	%r13, %rax
	movq	%rax, (%rsp)
	movl	%r14d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_bus_setup_intr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movq	_MAX_RLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r12
	jl	LBB0_6
	jmp	LBB0_10
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_spec,4,2                   ## @pmu_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MAX_RLEN,4,2                   ## @MAX_RLEN
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_INTR_TYPE_MISC,4,2             ## @INTR_TYPE_MISC
	.comm	_pmu_intr,4,2                   ## @pmu_intr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to setup interrupt handler.\n"

	.comm	_MAXCPU,4,2                     ## @MAXCPU
	.comm	_PMU_IESR_C,4,2                 ## @PMU_IESR_C
	.comm	_ccnt_hi,8,3                    ## @ccnt_hi
	.comm	_pmu_attched,4,2                ## @pmu_attched
	.no_dead_strip	_pmu_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_attach
_pmu_attach:                            ; @pmu_attach
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #16]
Lloh0:
	adrp	x8, _pmu_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmu_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0, #8]
	mov	x0, x19
	bl	_bus_alloc_resources
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_device_printf
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x22, _MAX_RLEN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MAX_RLEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	mov	x24, #0
Lloh10:
	adrp	x25, _INTR_MPSAFE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _INTR_MPSAFE@GOTPAGEOFF]
Lloh12:
	adrp	x26, _INTR_TYPE_MISC@GOTPAGE
Lloh13:
	ldr	x26, [x26, _INTR_TYPE_MISC@GOTPAGEOFF]
Lloh14:
	adrp	x27, _pmu_intr@GOTPAGE
Lloh15:
	ldr	x27, [x27, _pmu_intr@GOTPAGEOFF]
Lloh16:
	adrp	x21, l_.str.1@PAGE
Lloh17:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x1, [x8, x24, lsl #3]
	cbz	x1, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	ldr	w3, [x27]
	ldr	x8, [x20]
	add	x6, x8, x23
	mov	x0, x19
	mov	x4, #0
	mov	x5, #0
	bl	_bus_setup_intr
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_spec,4,2                   ; @pmu_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MAX_RLEN,4,2                   ; @MAX_RLEN
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_INTR_TYPE_MISC,4,2             ; @INTR_TYPE_MISC
	.comm	_pmu_intr,4,2                   ; @pmu_intr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to setup interrupt handler.\n"

	.comm	_MAXCPU,4,2                     ; @MAXCPU
	.comm	_PMU_IESR_C,4,2                 ; @PMU_IESR_C
	.comm	_ccnt_hi,8,3                    ; @ccnt_hi
	.comm	_pmu_attched,4,2                ; @pmu_attched
	.no_dead_strip	_pmu_attach
.subsections_via_symbols
