	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vr41xx_set_irq_level           ## -- Begin function vr41xx_set_irq_level
	.p2align	4, 0x90
_vr41xx_set_irq_level:                  ## @vr41xx_set_irq_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_GIUINT_HIGH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jbe	LBB0_4
## %bb.1:
	movl	$1, %ebx
	movl	%edi, %ecx
	shll	%cl, %ebx
	movq	_IRQ_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movq	_GIUINTALSELL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %esi
	callq	_giu_set
	movq	_GIUINTSTATL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_GIUINT_HIGH_MAX@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jbe	LBB0_10
## %bb.5:
	subl	%eax, %edi
	movl	$1, %ebx
	movl	%edi, %ecx
	shll	%cl, %ebx
	movq	_IRQ_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movq	_GIUINTALSELH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpq	%rsi, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %esi
	callq	_giu_set
	jmp	LBB0_8
LBB0_3:
	movl	%ebx, %esi
	callq	_giu_clear
	movq	_GIUINTSTATL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movl	%ebx, %esi
	callq	_giu_clear
LBB0_8:
	movq	_GIUINTSTATH@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_giu_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GIUINT_HIGH_OFFSET,4,2         ## @GIUINT_HIGH_OFFSET
	.comm	_IRQ_LEVEL_HIGH,8,3             ## @IRQ_LEVEL_HIGH
	.comm	_GIUINTALSELL,4,2               ## @GIUINTALSELL
	.comm	_GIUINTSTATL,4,2                ## @GIUINTSTATL
	.comm	_GIUINT_HIGH_MAX,4,2            ## @GIUINT_HIGH_MAX
	.comm	_GIUINTALSELH,4,2               ## @GIUINTALSELH
	.comm	_GIUINTSTATH,4,2                ## @GIUINTSTATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vr41xx_set_irq_level           ; -- Begin function vr41xx_set_irq_level
	.p2align	2
_vr41xx_set_irq_level:                  ; @vr41xx_set_irq_level
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _GIUINT_HIGH_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIUINT_HIGH_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_3
; %bb.1:
	mov	w8, #1
Lloh3:
	adrp	x9, _IRQ_LEVEL_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQ_LEVEL_HIGH@GOTPAGEOFF]
	lsl	w19, w8, w0
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _GIUINTALSELL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GIUINTALSELL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.2:
	mov	x1, x19
	bl	_giu_set
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x9, _GIUINT_HIGH_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GIUINT_HIGH_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ls	LBB0_8
; %bb.4:
	sub	w8, w0, w8
	mov	w9, #1
Lloh12:
	adrp	x10, _IRQ_LEVEL_HIGH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IRQ_LEVEL_HIGH@GOTPAGEOFF]
	lsl	w19, w9, w8
Lloh14:
	ldr	x8, [x10]
Lloh15:
	adrp	x9, _GIUINTALSELH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GIUINTALSELH@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	cmp	x8, x1
	b.ne	LBB0_9
; %bb.5:
	mov	x1, x19
	bl	_giu_set
	b	LBB0_10
LBB0_6:
	mov	x1, x19
	bl	_giu_clear
LBB0_7:
Lloh18:
	adrp	x8, _GIUINTSTATL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GIUINTSTATL@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x1, x19
	bl	_giu_clear
LBB0_10:
Lloh20:
	adrp	x8, _GIUINTSTATH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GIUINTSTATH@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_giu_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GIUINT_HIGH_OFFSET,4,2         ; @GIUINT_HIGH_OFFSET
	.comm	_IRQ_LEVEL_HIGH,8,3             ; @IRQ_LEVEL_HIGH
	.comm	_GIUINTALSELL,4,2               ; @GIUINTALSELL
	.comm	_GIUINTSTATL,4,2                ; @GIUINTSTATL
	.comm	_GIUINT_HIGH_MAX,4,2            ; @GIUINT_HIGH_MAX
	.comm	_GIUINTALSELH,4,2               ; @GIUINTALSELH
	.comm	_GIUINTSTATH,4,2                ; @GIUINTSTATH
.subsections_via_symbols
