	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p4tcc_settings
_p4tcc_settings:                        ## @p4tcc_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, %r13
	movl	%edi, %r15d
	callq	_device_get_softc
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movl	(%rax), %edx
	cmpl	%edx, (%rbx)
	jge	LBB0_5
## %bb.4:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_5:
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$3, %edx
	movq	%r13, %rdi
	callq	_memset
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_TCC_NUM_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TCC_SPEED_PERCENT
	movl	%eax, 4(%r13,%r14,8)
	movl	%r15d, (%r13,%r14,8)
	incq	%r14
	decl	%ebx
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_10:
	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	_TCC_NUM_SETTINGS,4,2           ## @TCC_NUM_SETTINGS
	.no_dead_strip	_p4tcc_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p4tcc_settings
_p4tcc_settings:                        ; @p4tcc_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	x22, x1
	mov	x20, x0
	bl	_device_get_softc
	cbz	x22, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w9, [x19]
	ldr	w8, [x0]
	cmp	w9, w8
	b.ge	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x9, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	lsl	w2, w8, #3
	mov	x0, x22
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x24, #0
Lloh9:
	adrp	x8, _TCC_NUM_SETTINGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCC_NUM_SETTINGS@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	add	x22, x22, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_TCC_SPEED_PERCENT
	stp	w20, w0, [x22, #-4]
	add	x24, x24, #1
	sub	w23, w23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #8
	cmp	x24, x8
	b.lt	LBB0_7
LBB0_8:
	mov	w0, #0
	str	w8, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.comm	_TCC_NUM_SETTINGS,4,2           ; @TCC_NUM_SETTINGS
	.no_dead_strip	_p4tcc_settings
.subsections_via_symbols
