	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_msi_enable
_update_msi_enable:                     ## @update_msi_enable
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	leal	31(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	movl	%eax, %r12d
	sarl	$5, %r12d
	shll	$2, %r12d
	andl	$-32, %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BIT
	movl	%eax, %ebx
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_SMP8759_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r13), %edi
	addl	%r12d, %edi
	addl	(%r14), %edi
	callq	_readl_relaxed
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%ecx, %ebx
	addl	(%r13), %r12d
	addl	(%r14), %r12d
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_writel_relaxed
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMP8759_ENABLE,4,2             ## @SMP8759_ENABLE
	.no_dead_strip	_update_msi_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_msi_enable
_update_msi_enable:                     ; @update_msi_enable
	.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
	mov	x19, x1
	ldr	x22, [x0, #8]
	ldr	w8, [x0]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w10, w9, #5
	lsl	w23, w10, #2
	and	w9, w9, #0xffffffe0
	sub	w0, w8, w9
	bl	_BIT
	mov	x20, x0
	add	x21, x22, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x22]
Lloh0:
	adrp	x24, _SMP8759_ENABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SMP8759_ENABLE@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w8, w8, w23
	add	w0, w8, w9
	bl	_readl_relaxed
	orr	w8, w0, w20
	bic	w9, w0, w20
	cmp	w19, #0
	csel	w0, w9, w8, eq
	ldr	w8, [x22]
	ldr	w9, [x24]
	add	w8, w8, w23
	add	w1, w8, w9
	bl	_writel_relaxed
	mov	x0, x21
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMP8759_ENABLE,4,2             ; @SMP8759_ENABLE
	.no_dead_strip	_update_msi_enable
.subsections_via_symbols
