	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_set
_pn_set:                                ## @pn_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_PENDING_STUCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.13:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 4(%r15)
	jle	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movslq	(%rax,%rbx), %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
	movl	(%r14), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CPUFREQ_CMP
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	addq	$12, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
	jmp	LBB0_8
LBB0_4:
	xorl	%r12d, %r12d
LBB0_8:
	movq	16(%r15), %rax
	movl	%r12d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %esi
	movl	8(%rax,%rcx,4), %edx
	movl	8(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pn7_setfidvid                  ## TAILCALL
LBB0_12:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pn8_setfidvid                  ## TAILCALL
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PENDING_STUCK,4,2              ## @PENDING_STUCK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pn_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_set
_pn_set:                                ; @pn_set
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
	bl	_device_get_softc
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PENDING_STUCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PENDING_STUCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
LBB0_5:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x22, #0
	mov	x21, #0
	mov	w23, #19923
	movk	w23, #4194, lsl #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldrsw	x8, [x8, x22]
	mul	x8, x8, x23
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	ldr	w1, [x20]
	bl	_CPUFREQ_CMP
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x22, x22, #12
	cmp	x21, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	ldr	x8, [x19, #16]
	and	x9, x21, #0xffffffff
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldp	w1, w2, [x8, #4]
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	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
	b	_pn7_setfidvid
LBB0_13:
	mov	x0, x19
	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
	b	_pn8_setfidvid
LBB0_14:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PENDING_STUCK,4,2              ; @PENDING_STUCK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pn_set
.subsections_via_symbols
