	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smist_settings
_smist_settings:                        ## @smist_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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	cmpl	$1, (%rbx)
	jg	LBB0_5
## %bb.4:
	movl	$2, (%rbx)
	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	%rsi, %r14
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %r12
	movq	(%rax), %rsi
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rax, (%rsi)
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	callq	_smist_set
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_smist_get
	movq	(%r12), %rsi
	addq	$8, %rsi
	movl	%r15d, %edi
	callq	_smist_set
	movq	(%r12), %rsi
	movq	(%r13), %rax
LBB0_7:
	cmpq	%rax, 8(%rsi)
	jne	LBB0_9
## %bb.8:
	addq	$8, %rsi
	movl	%r15d, %edi
	callq	_smist_set
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_smist_get
	movq	(%r12), %rsi
	movl	%r15d, %edi
	callq	_smist_set
	movq	(%r12), %rsi
LBB0_9:
	movq	(%rsi), %rax
	movq	%rax, (%r14)
	movl	$2, (%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,8,3        ## @CPUFREQ_VAL_UNKNOWN
	.no_dead_strip	_smist_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smist_settings
_smist_settings:                        ; @smist_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.gt	LBB0_5
; %bb.3:
	mov	w8, #2
	str	w8, [x19]
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
	mov	x20, x1
	mov	x21, x0
	bl	_device_get_softc
	mov	x22, x0
	ldr	x1, [x0]
	ldr	x8, [x1]
Lloh6:
	adrp	x23, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_smist_set
	add	x1, sp, #8
	mov	x0, x21
	bl	_smist_get
	ldr	x8, [x22]
	add	x1, x8, #8
	mov	x0, x21
	bl	_smist_set
	ldr	x1, [x22]
	ldr	x9, [x23]
LBB0_7:
	mov	x8, x1
	ldr	x10, [x8, #8]!
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x8
	bl	_smist_set
	add	x1, sp, #8
	mov	x0, x21
	bl	_smist_get
	ldr	x1, [x22]
	mov	x0, x21
	bl	_smist_set
	ldr	x1, [x22]
LBB0_9:
	mov	w0, #0
	ldr	x8, [x1]
	str	x8, [x20]
	mov	w8, #2
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_CPUFREQ_VAL_UNKNOWN,8,3        ; @CPUFREQ_VAL_UNKNOWN
	.no_dead_strip	_smist_settings
.subsections_via_symbols
