	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atpic_init
_atpic_init:                            ## @atpic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ATPIC_MASTER@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%esi, (%rax)
	setne	%cl
	leal	251(,%rcx,4), %eax
	movq	(%rdi), %rcx
	movslq	%esi, %rbx
	movl	%eax, (%rcx,%rbx,4)
	movq	_ICW1_RESET@GOTPCREL(%rip), %rax
	movq	_ICW1_IC4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_atpic_write
	movq	_ATPIC_SLAVE@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	cmpl	%ebx, (%r15)
	sete	%cl
	shll	$3, %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_atpic_write
	xorl	%eax, %eax
	cmpl	%ebx, (%r15)
	setne	%al
	leal	(%rax,%rax), %ecx
	addl	$2, %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_atpic_write
	movq	_ICW4_8086@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_atpic_write
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_atpic_write
	movq	_OCW3_SEL@GOTPCREL(%rip), %rax
	movq	_OCW3_RR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atpic_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATPIC_MASTER,4,2               ## @ATPIC_MASTER
	.comm	_ICW1_RESET,4,2                 ## @ICW1_RESET
	.comm	_ICW1_IC4,4,2                   ## @ICW1_IC4
	.comm	_ATPIC_SLAVE,4,2                ## @ATPIC_SLAVE
	.comm	_ICW4_8086,4,2                  ## @ICW4_8086
	.comm	_OCW3_SEL,4,2                   ## @OCW3_SEL
	.comm	_OCW3_RR,4,2                    ## @OCW3_RR
	.no_dead_strip	_atpic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atpic_init
_atpic_init:                            ; @atpic_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ATPIC_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATPIC_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #255
	mov	w10, #251
	cmp	w8, w1
	csel	w8, w10, w9, eq
	ldr	x9, [x0]
	sbfiz	x21, x19, #2, #32
	str	w8, [x9, x21]
Lloh3:
	adrp	x8, _ICW1_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICW1_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ICW1_IC4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICW1_IC4@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w2, #0
	bl	_atpic_write
Lloh9:
	adrp	x22, _ATPIC_SLAVE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ATPIC_SLAVE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w19
	cset	w8, eq
	lsl	w3, w8, #3
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_atpic_write
	ldr	w8, [x22]
	mov	w9, #4
	mov	w10, #2
	cmp	w8, w19
	csel	w3, w10, w9, eq
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_atpic_write
Lloh11:
	adrp	x8, _ICW4_8086@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICW4_8086@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_atpic_write
	ldr	x8, [x20]
	ldr	w3, [x8, x21]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_atpic_write
Lloh14:
	adrp	x8, _OCW3_SEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OCW3_SEL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _OCW3_RR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OCW3_RR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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	_atpic_write
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATPIC_MASTER,4,2               ; @ATPIC_MASTER
	.comm	_ICW1_RESET,4,2                 ; @ICW1_RESET
	.comm	_ICW1_IC4,4,2                   ; @ICW1_IC4
	.comm	_ATPIC_SLAVE,4,2                ; @ATPIC_SLAVE
	.comm	_ICW4_8086,4,2                  ; @ICW4_8086
	.comm	_OCW3_SEL,4,2                   ; @OCW3_SEL
	.comm	_OCW3_RR,4,2                    ; @OCW3_RR
	.no_dead_strip	_atpic_init
.subsections_via_symbols
