	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwpstate_settings
_hwpstate_settings:                     ## @hwpstate_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %rbx
	movl	%edi, %r15d
	callq	_device_get_softc
	movl	(%rax), %ecx
	cmpl	%ecx, (%r14)
	jge	LBB0_4
## %bb.7:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_4:
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.5:
	movq	8(%rax), %rax
	leaq	-1(%rcx), %rdx
	movl	%ecx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdx
	jae	LBB0_8
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_8:
	movl	%ecx, %edi
	andl	$-4, %edi
	leaq	48(%rax), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-48(%rdx), %xmm0
	movups	%xmm0, 4(%rbx)
	movl	%r15d, (%rbx)
	movups	-32(%rdx), %xmm0
	movups	%xmm0, 24(%rbx)
	movl	%r15d, 20(%rbx)
	movups	-16(%rdx), %xmm0
	movups	%xmm0, 44(%rbx)
	movl	%r15d, 40(%rbx)
	movups	(%rdx), %xmm0
	movups	%xmm0, 64(%rbx)
	movl	%r15d, 60(%rbx)
	addq	$4, %rsi
	addq	$80, %rbx
	addq	$64, %rdx
	cmpq	%rsi, %rdi
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	shlq	$4, %rsi
	addq	%rsi, %rax
	shlq	$2, %r8
	leaq	(%r8,%r8,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rax), %xmm0
	movups	%xmm0, 4(%rbx,%rsi)
	movl	%r15d, (%rbx,%rsi)
	addq	$16, %rax
	addq	$20, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_12
LBB0_13:
	movl	%ecx, (%r14)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_hwpstate_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwpstate_settings
_hwpstate_settings:                     ; @hwpstate_settings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_4
; %bb.2:
	mov	x21, x1
	mov	x20, x0
	bl	_device_get_softc
	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:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x9, [x0, #8]
	add	x10, x21, #4
	mov	x11, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x9], #16
	str	q0, [x10]
	stur	w20, [x10, #-4]
	add	x10, x10, #20
	subs	x11, x11, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_hwpstate_settings
.subsections_via_symbols
