	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8259_init
_i8259_init:                            ## @i8259_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_spinlock_enter
	movl	(%r15), %edi
	movq	_ICW1_RESET@GOTPCREL(%rip), %rax
	movq	_ICW1_IC4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_outb
	movq	_ICU_IMR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r15), %ebx
	movl	4(%r15), %esi
	movl	%ebx, %edi
	callq	_outb
	movq	_ICU_SLAVEID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_SLAVE_MODE@GOTPCREL(%rip), %r12
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %edi
	callq	_IRQ_MASK
	movl	%eax, %esi
	movq	_MASTER_MODE@GOTPCREL(%rip), %r12
LBB0_3:
	movl	%ebx, %edi
	callq	_outb
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_outb
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_outb
	movl	(%r15), %edi
	movq	_OCW3_SEL@GOTPCREL(%rip), %rax
	movq	_OCW3_RR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_outb
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:
	movq	_OCW2_R@GOTPCREL(%rip), %rax
	movq	_OCW2_SL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r15), %edi
	movq	_OCW2_L1@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_outb
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spinlock_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICW1_RESET,4,2                 ## @ICW1_RESET
	.comm	_ICW1_IC4,4,2                   ## @ICW1_IC4
	.comm	_ICU_IMR_OFFSET,4,2             ## @ICU_IMR_OFFSET
	.comm	_ICU_SLAVEID,4,2                ## @ICU_SLAVEID
	.comm	_SLAVE_MODE,4,2                 ## @SLAVE_MODE
	.comm	_MASTER_MODE,4,2                ## @MASTER_MODE
	.comm	_OCW3_SEL,4,2                   ## @OCW3_SEL
	.comm	_OCW3_RR,4,2                    ## @OCW3_RR
	.comm	_OCW2_R,4,2                     ## @OCW2_R
	.comm	_OCW2_SL,4,2                    ## @OCW2_SL
	.comm	_OCW2_L1,4,2                    ## @OCW2_L1
	.no_dead_strip	_i8259_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8259_init
_i8259_init:                            ; @i8259_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_spinlock_enter
Lloh0:
	adrp	x8, _ICW1_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICW1_RESET@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ICW1_IC4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICW1_IC4@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_outb
Lloh6:
	adrp	x8, _ICU_IMR_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICU_IMR_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w1, [x19]
	add	w21, w8, w9
	mov	x0, x21
	bl	_outb
Lloh9:
	adrp	x8, _ICU_SLAVEID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICU_SLAVEID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	cbz	w20, LBB0_2
; %bb.1:
Lloh12:
	adrp	x22, _SLAVE_MODE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SLAVE_MODE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_IRQ_MASK
	mov	x1, x0
Lloh14:
	adrp	x22, _MASTER_MODE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MASTER_MODE@GOTPAGEOFF]
LBB0_3:
	mov	x0, x21
	bl	_outb
	ldr	w1, [x22]
	mov	x0, x21
	bl	_outb
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_outb
Lloh16:
	adrp	x8, _OCW3_SEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OCW3_SEL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _OCW3_RR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OCW3_RR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_outb
	cbnz	w20, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _OCW2_R@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OCW2_R@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _OCW2_SL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _OCW2_SL@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _OCW2_L1@GOTPAGE
Lloh29:
	ldr	x9, [x9, _OCW2_L1@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_outb
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spinlock_exit
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ICW1_RESET,4,2                 ; @ICW1_RESET
	.comm	_ICW1_IC4,4,2                   ; @ICW1_IC4
	.comm	_ICU_IMR_OFFSET,4,2             ; @ICU_IMR_OFFSET
	.comm	_ICU_SLAVEID,4,2                ; @ICU_SLAVEID
	.comm	_SLAVE_MODE,4,2                 ; @SLAVE_MODE
	.comm	_MASTER_MODE,4,2                ; @MASTER_MODE
	.comm	_OCW3_SEL,4,2                   ; @OCW3_SEL
	.comm	_OCW3_RR,4,2                    ; @OCW3_RR
	.comm	_OCW2_R,4,2                     ; @OCW2_R
	.comm	_OCW2_SL,4,2                    ; @OCW2_SL
	.comm	_OCW2_L1,4,2                    ; @OCW2_L1
	.no_dead_strip	_i8259_init
.subsections_via_symbols
