	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc85xx_jog_attach
_mpc85xx_jog_attach:                    ## @mpc85xx_jog_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r15d, 16(%rax)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mpc85xx_jog_devcompat
	movq	(%rax), %r12
	movl	%r15d, %edi
	callq	_device_get_parent
	movl	%eax, %edi
	callq	_ofw_bus_get_node
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	%rbx, %rdx
	addq	$8, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movl	$4, %ecx
	callq	_OF_getencprop
	movq	_GUTS_PORPLLSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ccsr_read4
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_PMJCR_GET_CORE_MULT
	movl	%eax, 12(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movl	%r15d, %edi
	callq	_cpufreq_register
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No CPU device tree node!\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"reg"

	.comm	_GUTS_PORPLLSR,4,2              ## @GUTS_PORPLLSR
	.no_dead_strip	_mpc85xx_jog_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc85xx_jog_attach
_mpc85xx_jog_attach:                    ; @mpc85xx_jog_attach
	.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	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #16]
	bl	_mpc85xx_jog_devcompat
	ldr	x21, [x0]
	mov	x0, x19
	bl	_device_get_parent
	bl	_ofw_bus_get_node
	cmp	x0, #0
	b.le	LBB0_2
; %bb.1:
	add	x2, x20, #8
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #4
	bl	_OF_getencprop
Lloh2:
	adrp	x8, _GUTS_PORPLLSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GUTS_PORPLLSR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ccsr_read4
	ldr	w1, [x20, #8]
	bl	_PMJCR_GET_CORE_MULT
	str	w0, [x20, #12]
	ldr	d0, [x21]
	str	d0, [x20]
	mov	x0, x19
	bl	_cpufreq_register
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No CPU device tree node!\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"reg"

	.comm	_GUTS_PORPLLSR,4,2              ; @GUTS_PORPLLSR
	.no_dead_strip	_mpc85xx_jog_attach
.subsections_via_symbols
