	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_set_alpha                 ## -- Begin function rvin_set_alpha
	.p2align	4, 0x90
_rvin_set_alpha:                        ## @rvin_set_alpha
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, (%r15)
	movq	8(%r15), %rax
	movq	_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movl	20(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	_VNDMR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rvin_read
	movq	_VNDMR_ABIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %esi
	cmpl	$0, (%r15)
	cmovel	%ecx, %esi
	jmp	LBB0_5
LBB0_4:
	movq	_VNDMR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rvin_read
	movq	_VNDMR_A8BIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	callq	_VNDMR_A8BIT
	movl	%eax, %esi
	orl	%ebx, %esi
LBB0_5:
	movq	_VNDMR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rvin_write
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STOPPED,8,3                    ## @STOPPED
	.comm	_VNDMR_REG,4,2                  ## @VNDMR_REG
	.comm	_VNDMR_ABIT,4,2                 ## @VNDMR_ABIT
	.comm	_VNDMR_A8BIT_MASK,4,2           ## @VNDMR_A8BIT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_set_alpha                 ; -- Begin function rvin_set_alpha
	.p2align	2
_rvin_set_alpha:                        ; @rvin_set_alpha
	.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, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	w21, [x20]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x20, #20]
Lloh3:
	adrp	x21, _VNDMR_REG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VNDMR_REG@GOTPAGEOFF]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rvin_read
Lloh5:
	adrp	x8, _VNDMR_ABIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VNDMR_ABIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w9, w0, w8
	ldr	w10, [x20]
	orr	w8, w8, w0
	cmp	w10, #0
	csel	w1, w9, w8, eq
	b	LBB0_5
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rvin_read
Lloh8:
	adrp	x8, _VNDMR_A8BIT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VNDMR_A8BIT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w22, w0, w8
	ldr	w0, [x20]
	bl	_VNDMR_A8BIT
	orr	w1, w0, w22
LBB0_5:
	ldr	w2, [x21]
	mov	x0, x20
	bl	_rvin_write
LBB0_6:
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STOPPED,8,3                    ; @STOPPED
	.comm	_VNDMR_REG,4,2                  ; @VNDMR_REG
	.comm	_VNDMR_ABIT,4,2                 ; @VNDMR_ABIT
	.comm	_VNDMR_A8BIT_MASK,4,2           ; @VNDMR_A8BIT_MASK
.subsections_via_symbols
