	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inport_interrupt
_inport_interrupt:                      ## @inport_interrupt
	.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
	movq	_INPORT_REG_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INPORT_CONTROL_PORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_outb
	movq	_INPORT_MODE_HOLD@GOTPCREL(%rip), %rax
	movq	_INPORT_MODE_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_INPORT_MODE_BASE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_INPORT_DATA_PORT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_outb
	movq	_INPORT_REG_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movq	_inport_dev@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %edi
	callq	_inb
	movzbl	%al, %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_input_report_rel
	movq	_INPORT_REG_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movl	(%r15), %r14d
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %edi
	callq	_inb
	movzbl	%al, %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_input_report_rel
	movq	_INPORT_REG_BTNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movl	(%r13), %edi
	callq	_inb
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %edx
	callq	_input_report_key
	movl	(%r15), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	andb	$2, %al
	movzbl	%al, %edx
	callq	_input_report_key
	movl	(%r15), %edi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andb	$4, %bl
	movzbl	%bl, %edx
	callq	_input_report_key
	movq	_INPORT_REG_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movq	_INPORT_MODE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INPORT_MODE_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	(%r13), %esi
	callq	_outb
	movl	(%r15), %edi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPORT_REG_MODE,4,2            ## @INPORT_REG_MODE
	.comm	_INPORT_CONTROL_PORT,4,2        ## @INPORT_CONTROL_PORT
	.comm	_INPORT_MODE_HOLD,4,2           ## @INPORT_MODE_HOLD
	.comm	_INPORT_MODE_IRQ,4,2            ## @INPORT_MODE_IRQ
	.comm	_INPORT_MODE_BASE,4,2           ## @INPORT_MODE_BASE
	.comm	_INPORT_DATA_PORT,4,2           ## @INPORT_DATA_PORT
	.comm	_INPORT_REG_X,4,2               ## @INPORT_REG_X
	.comm	_inport_dev,4,2                 ## @inport_dev
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_INPORT_REG_Y,4,2               ## @INPORT_REG_Y
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_INPORT_REG_BTNS,4,2            ## @INPORT_REG_BTNS
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_inport_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inport_interrupt
_inport_interrupt:                      ; @inport_interrupt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _INPORT_REG_MODE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INPORT_REG_MODE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _INPORT_CONTROL_PORT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INPORT_CONTROL_PORT@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_outb
Lloh4:
	adrp	x8, _INPORT_MODE_HOLD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INPORT_MODE_HOLD@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x23, _INPORT_MODE_IRQ@GOTPAGE
Lloh8:
	ldr	x23, [x23, _INPORT_MODE_IRQ@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh9:
	adrp	x24, _INPORT_MODE_BASE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _INPORT_MODE_BASE@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w0, w8, w9
Lloh11:
	adrp	x25, _INPORT_DATA_PORT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _INPORT_DATA_PORT@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_outb
Lloh13:
	adrp	x8, _INPORT_REG_X@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INPORT_REG_X@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_outb
Lloh16:
	adrp	x26, _inport_dev@GOTPAGE
Lloh17:
	ldr	x26, [x26, _inport_dev@GOTPAGEOFF]
	ldr	w19, [x26]
Lloh18:
	adrp	x8, _REL_X@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	ldr	w0, [x25]
	bl	_inb
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_rel
Lloh21:
	adrp	x8, _INPORT_REG_Y@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INPORT_REG_Y@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_outb
	ldr	w19, [x26]
Lloh24:
	adrp	x8, _REL_Y@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	ldr	w0, [x25]
	bl	_inb
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_rel
Lloh27:
	adrp	x8, _INPORT_REG_BTNS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INPORT_REG_BTNS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_outb
	ldr	w0, [x25]
	bl	_inb
	mov	x19, x0
	ldr	w0, [x26]
Lloh30:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	and	w2, w19, #0x1
	bl	_input_report_key
	ldr	w0, [x26]
Lloh33:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	and	w2, w19, #0x2
	bl	_input_report_key
	ldr	w0, [x26]
Lloh36:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	and	w2, w19, #0x4
	bl	_input_report_key
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_outb
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w0, w9, w8
	ldr	w1, [x25]
	bl	_outb
	ldr	w0, [x26]
	bl	_input_sync
Lloh39:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INPORT_REG_MODE,4,2            ; @INPORT_REG_MODE
	.comm	_INPORT_CONTROL_PORT,4,2        ; @INPORT_CONTROL_PORT
	.comm	_INPORT_MODE_HOLD,4,2           ; @INPORT_MODE_HOLD
	.comm	_INPORT_MODE_IRQ,4,2            ; @INPORT_MODE_IRQ
	.comm	_INPORT_MODE_BASE,4,2           ; @INPORT_MODE_BASE
	.comm	_INPORT_DATA_PORT,4,2           ; @INPORT_DATA_PORT
	.comm	_INPORT_REG_X,4,2               ; @INPORT_REG_X
	.comm	_inport_dev,4,2                 ; @inport_dev
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_INPORT_REG_Y,4,2               ; @INPORT_REG_Y
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_INPORT_REG_BTNS,4,2            ; @INPORT_REG_BTNS
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_inport_interrupt
.subsections_via_symbols
