	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc85xx_jog_settings
_mpc85xx_jog_settings:                  ## @mpc85xx_jog_settings
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r12d
	callq	_device_get_softc
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, (%rbx)
	jge	LBB0_5
## %bb.4:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_mpc85xx_get_system_clock
	movl	%eax, %r14d
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r15, %rdi
	callq	_memset
	movl	(%r13), %ebx
	movl	4(%r13), %eax
	cmpl	%eax, %ebx
	jl	LBB0_10
## %bb.6:
	movslq	%ebx, %rdi
	negq	%rdi
	movl	%r14d, %ecx
	imull	%ebx, %ecx
	movq	_MHZ@GOTPCREL(%rip), %r8
	movl	%ebx, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	(%r8)
	movslq	%ebx, %rdx
	addq	%rdi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%r15,%rdx,8)
	movl	%r12d, 16(%r15,%rdx,8)
	movq	8(%r15,%rdx,8), %rax
	movl	%esi, (%rax)
	movl	4(%r13), %eax
	cmpl	%eax, %esi
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	decl	%esi
	movl	(%r13), %ebx
	incq	%rdi
	subl	%r14d, %ecx
	jmp	LBB0_7
LBB0_9:
	movl	(%r13), %ebx
LBB0_10:
	subl	%eax, %ebx
	incl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.comm	_MHZ,4,2                        ## @MHZ
	.no_dead_strip	_mpc85xx_jog_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc85xx_jog_settings
_mpc85xx_jog_settings:                  ; @mpc85xx_jog_settings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_device_get_softc
	cbz	x20, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w8, [x19]
	ldr	w9, [x0]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_5:
	bl	_mpc85xx_get_system_clock
	mov	x23, x0
Lloh6:
	adrp	x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x22]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	mov	x0, x20
	bl	_memset
	ldp	w8, w14, [x22]
	cmp	w8, w14
	b.lt	LBB0_10
; %bb.6:
	sxtw	x9, w8
	neg	x9, x9
	mul	w10, w23, w8
Lloh9:
	adrp	x11, _MHZ@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MHZ@GOTPAGEOFF]
	mov	w12, #24
	mov	x13, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x11]
	sdiv	w14, w10, w14
	add	x8, x9, w8, sxtw
	madd	x8, x8, x12, x20
	str	w14, [x8]
	str	w21, [x8, #16]
	ldr	x8, [x8, #8]
	str	w13, [x8]
	ldr	w14, [x22, #4]
	cmp	w13, w14
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w13, w13, #1
	ldr	w8, [x22]
	add	x9, x9, #1
	sub	w10, w10, w23
	b	LBB0_7
LBB0_9:
	ldr	w8, [x22]
LBB0_10:
	mov	w0, #0
	sub	w8, w8, w14
	add	w8, w8, #1
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.comm	_MHZ,4,2                        ; @MHZ
	.no_dead_strip	_mpc85xx_jog_settings
.subsections_via_symbols
