	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_irq
_setup_irq:                             ## @setup_irq
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jle	LBB0_2
## %bb.1:
	movq	_gen6_irq_disable@GOTPCREL(%rip), %rax
	movq	_gen6_irq_enable@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jle	LBB0_4
## %bb.3:
	movq	_gen5_irq_disable@GOTPCREL(%rip), %rax
	movq	_gen5_irq_enable@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$3, %eax
	movq	_i8xx_irq_enable@GOTPCREL(%rip), %rcx
	cmovgeq	_i9xx_irq_enable@GOTPCREL(%rip), %rcx
	movq	_i8xx_irq_disable@GOTPCREL(%rip), %rax
	cmovgeq	_i9xx_irq_disable@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gen6_irq_enable,4,2            ## @gen6_irq_enable
	.comm	_gen6_irq_disable,4,2           ## @gen6_irq_disable
	.comm	_gen5_irq_enable,4,2            ## @gen5_irq_enable
	.comm	_gen5_irq_disable,4,2           ## @gen5_irq_disable
	.comm	_i9xx_irq_enable,4,2            ## @i9xx_irq_enable
	.comm	_i9xx_irq_disable,4,2           ## @i9xx_irq_disable
	.comm	_i8xx_irq_enable,4,2            ## @i8xx_irq_enable
	.comm	_i8xx_irq_disable,4,2           ## @i8xx_irq_disable
	.no_dead_strip	_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_irq
_setup_irq:                             ; @setup_irq
	.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
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #5
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _gen6_irq_disable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gen6_irq_disable@GOTPAGEOFF]
Lloh2:
	adrp	x9, _gen6_irq_enable@GOTPAGE
Lloh3:
	ldr	x9, [x9, _gen6_irq_enable@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #4
	b.le	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _gen5_irq_disable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _gen5_irq_disable@GOTPAGEOFF]
Lloh6:
	adrp	x9, _gen5_irq_enable@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gen5_irq_enable@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_INTEL_GEN
Lloh8:
	adrp	x8, _i8xx_irq_enable@GOTPAGE
Lloh9:
	ldr	x8, [x8, _i8xx_irq_enable@GOTPAGEOFF]
Lloh10:
	adrp	x9, _i9xx_irq_enable@GOTPAGE
Lloh11:
	ldr	x9, [x9, _i9xx_irq_enable@GOTPAGEOFF]
	cmp	w0, #2
	csel	x9, x9, x8, gt
Lloh12:
	adrp	x8, _i8xx_irq_disable@GOTPAGE
Lloh13:
	ldr	x8, [x8, _i8xx_irq_disable@GOTPAGEOFF]
Lloh14:
	adrp	x10, _i9xx_irq_disable@GOTPAGE
Lloh15:
	ldr	x10, [x10, _i9xx_irq_disable@GOTPAGEOFF]
	csel	x8, x10, x8, gt
LBB0_5:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_gen6_irq_enable,4,2            ; @gen6_irq_enable
	.comm	_gen6_irq_disable,4,2           ; @gen6_irq_disable
	.comm	_gen5_irq_enable,4,2            ; @gen5_irq_enable
	.comm	_gen5_irq_disable,4,2           ; @gen5_irq_disable
	.comm	_i9xx_irq_enable,4,2            ; @i9xx_irq_enable
	.comm	_i9xx_irq_disable,4,2           ; @i9xx_irq_disable
	.comm	_i8xx_irq_enable,4,2            ; @i8xx_irq_enable
	.comm	_i8xx_irq_disable,4,2           ; @i8xx_irq_disable
	.no_dead_strip	_setup_irq
.subsections_via_symbols
