	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uncore_forcewake_for_reg ## -- Begin function intel_uncore_forcewake_for_reg
	.p2align	4, 0x90
_intel_uncore_forcewake_for_reg:        ## @intel_uncore_forcewake_for_reg
	.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	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_intel_uncore_has_forcewake
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_FW_REG_READ@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*8(%rbx)
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	_FW_REG_WRITE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*16(%rbx)
	orl	%eax, %r15d
LBB0_7:
	movl	(%rbx), %edi
	notl	%edi
	andl	%r15d, %edi
	callq	_WARN_ON
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_REG_READ,4,2                ## @FW_REG_READ
	.comm	_FW_REG_WRITE,4,2               ## @FW_REG_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uncore_forcewake_for_reg ; -- Begin function intel_uncore_forcewake_for_reg
	.p2align	2
_intel_uncore_forcewake_for_reg:        ; @intel_uncore_forcewake_for_reg
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w2, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x19
	bl	_intel_uncore_has_forcewake
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _FW_REG_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_REG_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x22, x0
	b	LBB0_5
LBB0_3:
	mov	w22, #0
	b	LBB0_8
LBB0_4:
	mov	w22, #0
LBB0_5:
Lloh3:
	adrp	x8, _FW_REG_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_REG_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	orr	w22, w0, w22
LBB0_7:
	ldr	w8, [x19]
	bic	w0, w22, w8
	bl	_WARN_ON
LBB0_8:
	mov	x0, x22
	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	_FW_REG_READ,4,2                ; @FW_REG_READ
	.comm	_FW_REG_WRITE,4,2               ; @FW_REG_WRITE
.subsections_via_symbols
