	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_lpss_ltr_set
_intel_lpss_ltr_set:                    ## @intel_lpss_ltr_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
	movl	%esi, %r15d
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_LPSS_PRIV_ACTIVELTR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rax), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_LPSS_PRIV_LTR_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.1:
	movq	_PM_QOS_LATENCY_ANY@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	je	LBB0_2
## %bb.3:
	orl	%ebx, %eax
	movq	_LPSS_PRIV_LTR_SCALE_MASK@GOTPCREL(%rip), %rcx
	movq	_LPSS_PRIV_LTR_VALUE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ebx
	orl	%edx, %ebx
	notl	%ebx
	andl	%eax, %ebx
	cmpl	%r15d, %edx
	jge	LBB0_5
## %bb.4:
	movq	_LPSS_PRIV_LTR_SCALE_32US@GOTPCREL(%rip), %rax
	shrl	$5, %r15d
	jmp	LBB0_6
LBB0_2:
	notl	%eax
	andl	%eax, %ebx
	cmpl	(%r14), %ebx
	je	LBB0_8
LBB0_9:
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_LPSS_PRIV_IDLELTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_lpss_cache_ltr           ## TAILCALL
LBB0_5:
	movq	_LPSS_PRIV_LTR_SCALE_1US@GOTPCREL(%rip), %rax
LBB0_6:
	orl	%r15d, %ebx
	orl	(%rax), %ebx
	cmpl	(%r14), %ebx
	jne	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPSS_PRIV_ACTIVELTR,8,3        ## @LPSS_PRIV_ACTIVELTR
	.comm	_PM_QOS_LATENCY_ANY,4,2         ## @PM_QOS_LATENCY_ANY
	.comm	_LPSS_PRIV_LTR_REQ,4,2          ## @LPSS_PRIV_LTR_REQ
	.comm	_LPSS_PRIV_LTR_SCALE_MASK,4,2   ## @LPSS_PRIV_LTR_SCALE_MASK
	.comm	_LPSS_PRIV_LTR_VALUE_MASK,4,2   ## @LPSS_PRIV_LTR_VALUE_MASK
	.comm	_LPSS_PRIV_LTR_SCALE_32US,4,2   ## @LPSS_PRIV_LTR_SCALE_32US
	.comm	_LPSS_PRIV_LTR_SCALE_1US,4,2    ## @LPSS_PRIV_LTR_SCALE_1US
	.comm	_LPSS_PRIV_IDLELTR,8,3          ## @LPSS_PRIV_IDLELTR
	.no_dead_strip	_intel_lpss_ltr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_lpss_ltr_set
_intel_lpss_ltr_set:                    ; @intel_lpss_ltr_set
	.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
	mov	x20, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _LPSS_PRIV_ACTIVELTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LPSS_PRIV_ACTIVELTR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _LPSS_PRIV_LTR_REQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LPSS_PRIV_LTR_REQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tbnz	w20, #31, LBB0_4
; %bb.1:
Lloh5:
	adrp	x9, _PM_QOS_LATENCY_ANY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PM_QOS_LATENCY_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w20
	b.eq	LBB0_4
; %bb.2:
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _LPSS_PRIV_LTR_SCALE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LPSS_PRIV_LTR_SCALE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _LPSS_PRIV_LTR_VALUE_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LPSS_PRIV_LTR_VALUE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	cmp	w10, w20
	b.ge	LBB0_5
; %bb.3:
Lloh14:
	adrp	x9, _LPSS_PRIV_LTR_SCALE_32US@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LPSS_PRIV_LTR_SCALE_32US@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w20, lsr #5
	b	LBB0_6
LBB0_4:
	bic	w20, w0, w8
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x9, _LPSS_PRIV_LTR_SCALE_1US@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LPSS_PRIV_LTR_SCALE_1US@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w20
LBB0_6:
	orr	w20, w8, w9
LBB0_7:
	ldr	w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.8:
	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
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _LPSS_PRIV_IDLELTR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LPSS_PRIV_IDLELTR@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	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
	b	_intel_lpss_cache_ltr
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LPSS_PRIV_ACTIVELTR,8,3        ; @LPSS_PRIV_ACTIVELTR
	.comm	_PM_QOS_LATENCY_ANY,4,2         ; @PM_QOS_LATENCY_ANY
	.comm	_LPSS_PRIV_LTR_REQ,4,2          ; @LPSS_PRIV_LTR_REQ
	.comm	_LPSS_PRIV_LTR_SCALE_MASK,4,2   ; @LPSS_PRIV_LTR_SCALE_MASK
	.comm	_LPSS_PRIV_LTR_VALUE_MASK,4,2   ; @LPSS_PRIV_LTR_VALUE_MASK
	.comm	_LPSS_PRIV_LTR_SCALE_32US,4,2   ; @LPSS_PRIV_LTR_SCALE_32US
	.comm	_LPSS_PRIV_LTR_SCALE_1US,4,2    ; @LPSS_PRIV_LTR_SCALE_1US
	.comm	_LPSS_PRIV_IDLELTR,8,3          ; @LPSS_PRIV_IDLELTR
	.no_dead_strip	_intel_lpss_ltr_set
.subsections_via_symbols
