	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apbps2_isr
_apbps2_isr:                            ## @apbps2_isr
	.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	%rsi, %r14
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rsi), %rdi
	callq	_ioread32be
	movq	%rax, %rbx
	movq	_APBPS2_STATUS_DR@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_APBPS2_STATUS_FE@GOTPCREL(%rip), %r12
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_serio_interrupt
	movl	(%r13), %r15d
	movq	8(%r14), %rdi
	callq	_ioread32be
	movq	%rax, %rbx
	movq	_APBPS2_STATUS_DR@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	$4, %rdi
	callq	_ioread32be
	movq	%rax, %r15
	movq	_APBPS2_STATUS_PE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%rbx, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andq	(%r12), %rbx
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	orq	%rax, %rbx
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	(%r12), %rbx
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SERIO_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	%rax, %rbx
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_iowrite32be
	jmp	LBB0_8
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_APBPS2_STATUS_DR,8,3           ## @APBPS2_STATUS_DR
	.comm	_APBPS2_STATUS_PE,8,3           ## @APBPS2_STATUS_PE
	.comm	_SERIO_PARITY,8,3               ## @SERIO_PARITY
	.comm	_APBPS2_STATUS_FE,8,3           ## @APBPS2_STATUS_FE
	.comm	_SERIO_FRAME,8,3                ## @SERIO_FRAME
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_apbps2_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apbps2_isr
_apbps2_isr:                            ; @apbps2_isr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x0, [x1, #8]
	bl	_ioread32be
Lloh3:
	adrp	x22, _APBPS2_STATUS_DR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _APBPS2_STATUS_DR@GOTPAGEOFF]
	ldr	x8, [x22]
	tst	x8, x0
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x23, _APBPS2_STATUS_PE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _APBPS2_STATUS_PE@GOTPAGEOFF]
Lloh7:
	adrp	x24, _SERIO_PARITY@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SERIO_PARITY@GOTPAGEOFF]
Lloh9:
	adrp	x25, _APBPS2_STATUS_FE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _APBPS2_STATUS_FE@GOTPAGEOFF]
Lloh11:
	adrp	x26, _SERIO_FRAME@GOTPAGE
Lloh12:
	ldr	x26, [x26, _SERIO_FRAME@GOTPAGEOFF]
Lloh13:
	adrp	x27, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x27, [x27, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_serio_interrupt
	ldr	w21, [x27]
	ldr	x0, [x19, #8]
	bl	_ioread32be
	mov	x20, x0
	ldr	x8, [x22]
	tst	x8, x0
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_ioread32be
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x9, [x24]
	tst	x8, x20
	csel	x8, xzr, x9, eq
	ldr	x9, [x25]
	ldr	x10, [x26]
	tst	x9, x20
	csel	x9, xzr, x10, eq
	orr	x20, x9, x8
	cbz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #8]
	mov	w0, #0
	bl	_iowrite32be
	b	LBB0_2
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_APBPS2_STATUS_DR,8,3           ; @APBPS2_STATUS_DR
	.comm	_APBPS2_STATUS_PE,8,3           ; @APBPS2_STATUS_PE
	.comm	_SERIO_PARITY,8,3               ; @SERIO_PARITY
	.comm	_APBPS2_STATUS_FE,8,3           ; @APBPS2_STATUS_FE
	.comm	_SERIO_FRAME,8,3                ; @SERIO_FRAME
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_apbps2_isr
.subsections_via_symbols
