	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atpic_disable_source
_atpic_disable_source:                  ## @atpic_disable_source
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	xorl	%eax, %eax
	callq	_spinlock_enter
	movq	(%rbx), %rax
	movq	_INTR_TRIGGER_EDGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_IMEN_MASK
	orl	(%r15), %eax
	movl	%eax, (%r15)
	movq	_ICU_IMR_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_outb
LBB0_2:
	movq	_PIC_EOI@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_atpics@GOTPCREL(%rip), %rax
	movq	_MASTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	cmpq	%rcx, (%rbx)
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	__atpic_eoi_slave
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	__atpic_eoi_master
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spinlock_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_TRIGGER_EDGE,8,3          ## @INTR_TRIGGER_EDGE
	.comm	_ICU_IMR_OFFSET,8,3             ## @ICU_IMR_OFFSET
	.comm	_PIC_EOI,4,2                    ## @PIC_EOI
	.comm	_atpics,8,3                     ## @atpics
	.comm	_MASTER,8,3                     ## @MASTER
	.no_dead_strip	_atpic_disable_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atpic_disable_source
_atpic_disable_source:                  ; @atpic_disable_source
	.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
	ldr	x21, [x0]
	bl	_spinlock_enter
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _INTR_TRIGGER_EDGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTR_TRIGGER_EDGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IMEN_MASK
	ldr	w8, [x21]
	orr	w1, w8, w0
	str	w1, [x21]
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _ICU_IMR_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICU_IMR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_outb
LBB0_2:
Lloh6:
	adrp	x8, _PIC_EOI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIC_EOI@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _atpics@GOTPAGE
Lloh10:
	ldr	x9, [x9, _atpics@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _MASTER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MASTER@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	mov	x0, x19
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	bl	__atpic_eoi_slave
	b	LBB0_6
LBB0_5:
	bl	__atpic_eoi_master
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_TRIGGER_EDGE,8,3          ; @INTR_TRIGGER_EDGE
	.comm	_ICU_IMR_OFFSET,8,3             ; @ICU_IMR_OFFSET
	.comm	_PIC_EOI,4,2                    ; @PIC_EOI
	.comm	_atpics,8,3                     ; @atpics
	.comm	_MASTER,8,3                     ; @MASTER
	.no_dead_strip	_atpic_disable_source
.subsections_via_symbols
