	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vbox_irq_handler               ## -- Begin function vbox_irq_handler
	.p2align	4, 0x90
_vbox_irq_handler:                      ## @vbox_irq_handler
	.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	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_vbox_get_flags
	movq	_HGSMIHOSTFLAGS_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_HGSMIHOSTFLAGS_HOTPLUG@GOTPCREL(%rip), %rcx
	movq	_HGSMIHOSTFLAGS_CURSOR_CAPABILITIES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.3:
	movq	_HGSMIHOSTFLAGS_VSYNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_vbox_report_hotplug
LBB0_5:
	xorl	%eax, %eax
	callq	_vbox_clear_irq
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HGSMIHOSTFLAGS_IRQ,4,2         ## @HGSMIHOSTFLAGS_IRQ
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_HGSMIHOSTFLAGS_HOTPLUG,4,2     ## @HGSMIHOSTFLAGS_HOTPLUG
	.comm	_HGSMIHOSTFLAGS_CURSOR_CAPABILITIES,4,2 ## @HGSMIHOSTFLAGS_CURSOR_CAPABILITIES
	.comm	_HGSMIHOSTFLAGS_VSYNC,4,2       ## @HGSMIHOSTFLAGS_VSYNC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vbox_irq_handler               ; -- Begin function vbox_irq_handler
	.p2align	2
_vbox_irq_handler:                      ; @vbox_irq_handler
	.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
	ldr	x19, [x1]
	mov	x0, x19
	bl	_vbox_get_flags
Lloh0:
	adrp	x8, _HGSMIHOSTFLAGS_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HGSMIHOSTFLAGS_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _HGSMIHOSTFLAGS_HOTPLUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HGSMIHOSTFLAGS_HOTPLUG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HGSMIHOSTFLAGS_CURSOR_CAPABILITIES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HGSMIHOSTFLAGS_CURSOR_CAPABILITIES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _HGSMIHOSTFLAGS_VSYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HGSMIHOSTFLAGS_VSYNC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_vbox_report_hotplug
LBB0_4:
	bl	_vbox_clear_irq
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HGSMIHOSTFLAGS_IRQ,4,2         ; @HGSMIHOSTFLAGS_IRQ
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_HGSMIHOSTFLAGS_HOTPLUG,4,2     ; @HGSMIHOSTFLAGS_HOTPLUG
	.comm	_HGSMIHOSTFLAGS_CURSOR_CAPABILITIES,4,2 ; @HGSMIHOSTFLAGS_CURSOR_CAPABILITIES
	.comm	_HGSMIHOSTFLAGS_VSYNC,4,2       ; @HGSMIHOSTFLAGS_VSYNC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
