	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i8259A_irq_pending             ## -- Begin function i8259A_irq_pending
	.p2align	4, 0x90
_i8259A_irq_pending:                    ## @i8259A_irq_pending
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	$1, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	movq	_i8259A_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	cmpl	$7, %r14d
	ja	LBB0_2
## %bb.1:
	movq	_PIC_MASTER_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	movl	%eax, %r14d
	andl	%ebx, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_PIC_SLAVE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	shrl	$8, %ebx
	andl	%eax, %ebx
	movl	%ebx, %r14d
LBB0_3:
	movq	_i8259A_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i8259A_lock,4,2                ## @i8259A_lock
	.comm	_PIC_MASTER_CMD,4,2             ## @PIC_MASTER_CMD
	.comm	_PIC_SLAVE_CMD,4,2              ## @PIC_SLAVE_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i8259A_irq_pending             ; -- Begin function i8259A_irq_pending
	.p2align	2
_i8259A_irq_pending:                    ; @i8259A_irq_pending
	.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
	mov	x19, x0
	mov	w8, #1
	lsl	w20, w8, w0
Lloh0:
	adrp	x0, _i8259A_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _i8259A_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	cmp	w19, #7
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PIC_MASTER_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIC_MASTER_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_inb
	and	w19, w0, w20
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _PIC_SLAVE_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIC_SLAVE_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_inb
	and	w19, w0, w20, lsr #8
LBB0_3:
Lloh8:
	adrp	x0, _i8259A_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _i8259A_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_i8259A_lock,4,2                ; @i8259A_lock
	.comm	_PIC_MASTER_CMD,4,2             ; @PIC_MASTER_CMD
	.comm	_PIC_SLAVE_CMD,4,2              ; @PIC_SLAVE_CMD
.subsections_via_symbols
