	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smist_set
_smist_set:                             ## @smist_set
	.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	%rsi, %r13
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r12
	movl	(%r13), %edi
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_CPUFREQ_CMP
	xorl	%r15d, %r15d
	movl	$0, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r13), %edi
	movq	(%r12), %rax
	movl	4(%rax), %esi
	callq	_CPUFREQ_CMP
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	%ebx, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_GET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_getset_state
	cmpl	%ebx, -48(%rbp)
	je	LBB0_12
## %bb.4:
	movq	_SET_STATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_getset_state
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	$200, %edi
	callq	_DELAY
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_getset_state
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	$200, %edi
	callq	_DELAY
	movl	(%rbx), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_getset_state
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movl	$200, %edi
	callq	_DELAY
	movl	$4, %ecx
	movl	%ebx, %r15d
	jmp	LBB0_11
LBB0_5:
	movl	$1, %ecx
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_7:
	movl	$2, %ecx
	jmp	LBB0_11
LBB0_9:
	movl	$3, %ecx
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DPRINT
LBB0_12:
	movl	%r15d, %eax
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested setting %d\n"

	.comm	_GET_STATE,4,2                  ## @GET_STATE
	.comm	_SET_STATE,4,2                  ## @SET_STATE
L_.str.1:                               ## @.str.1
	.asciz	"set_state return %d, tried %d times\n"

	.no_dead_strip	_smist_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smist_set
_smist_set:                             ; @smist_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	ldr	w0, [x21]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_CPUFREQ_CMP
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_4
LBB0_2:
	ldr	w0, [x21]
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	bl	_CPUFREQ_CMP
	cbz	x0, LBB0_11
; %bb.3:
	mov	w21, #1
LBB0_4:
	str	w21, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_DPRINT
Lloh2:
	adrp	x8, _GET_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GET_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x20
	bl	_getset_state
	ldr	w8, [sp, #12]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_15
LBB0_6:
Lloh5:
	adrp	x21, _SET_STATE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SET_STATE@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #8
	mov	x0, x20
	bl	_getset_state
	cbz	w0, LBB0_10
; %bb.7:
	mov	w0, #200
	bl	_DELAY
	ldr	w2, [x21]
	add	x1, sp, #8
	mov	x0, x20
	bl	_getset_state
	cbz	w0, LBB0_12
; %bb.8:
	mov	w0, #200
	bl	_DELAY
	ldr	w2, [x21]
	add	x1, sp, #8
	mov	x0, x20
	bl	_getset_state
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.9:
	mov	w0, #200
	bl	_DELAY
	mov	w8, #4
	b	LBB0_14
LBB0_10:
	mov	w20, #0
	mov	w8, #1
	b	LBB0_14
LBB0_11:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_12:
	mov	w20, #0
	mov	w8, #2
	b	LBB0_14
LBB0_13:
	mov	w8, #3
LBB0_14:
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_DPRINT
LBB0_15:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested setting %d\n"

	.comm	_GET_STATE,4,2                  ; @GET_STATE
	.comm	_SET_STATE,4,2                  ; @SET_STATE
l_.str.1:                               ; @.str.1
	.asciz	"set_state return %d, tried %d times\n"

	.no_dead_strip	_smist_set
.subsections_via_symbols
