	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_g1_irq_setup
_mv88e6xxx_g1_irq_setup:                ## @mv88e6xxx_g1_irq_setup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_mv88e6xxx_g1_irq_setup_common
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	4(%r14), %edi
	leaq	_mv88e6xxx_g1_irq_setup.lock_key(%rip), %rsi
	leaq	_mv88e6xxx_g1_irq_setup.request_key(%rip), %rdx
	callq	_irq_set_lockdep_class
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_unlock
	movl	(%r14), %edi
	movl	4(%r14), %r15d
	movq	_mv88e6xxx_g1_irq_thread_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	callq	_dev_name
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_request_threaded_irq
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_lock
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_mv88e6xxx_g1_irq_free_common
	movl	%r15d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mv88e6xxx_g1_irq_setup.lock_key,4,2 ## @mv88e6xxx_g1_irq_setup.lock_key
.zerofill __DATA,__bss,_mv88e6xxx_g1_irq_setup.request_key,4,2 ## @mv88e6xxx_g1_irq_setup.request_key
	.comm	_mv88e6xxx_g1_irq_thread_fn,4,2 ## @mv88e6xxx_g1_irq_thread_fn
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_mv88e6xxx_g1_irq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_g1_irq_setup
_mv88e6xxx_g1_irq_setup:                ; @mv88e6xxx_g1_irq_setup
	.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, x0
	bl	_mv88e6xxx_g1_irq_setup_common
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, _mv88e6xxx_g1_irq_setup.lock_key@PAGE
Lloh1:
	add	x1, x1, _mv88e6xxx_g1_irq_setup.lock_key@PAGEOFF
Lloh2:
	adrp	x2, _mv88e6xxx_g1_irq_setup.request_key@PAGE
Lloh3:
	add	x2, x2, _mv88e6xxx_g1_irq_setup.request_key@PAGEOFF
	bl	_irq_set_lockdep_class
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
Lloh4:
	adrp	x8, _mv88e6xxx_g1_irq_thread_fn@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mv88e6xxx_g1_irq_thread_fn@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldp	w0, w22, [x19]
	bl	_dev_name
	mov	x4, x0
	mov	x0, x22
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x20, x0
	mov	x0, x19
	bl	_mv88e6xxx_reg_lock
	cbz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mv88e6xxx_g1_irq_free_common
LBB0_3:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mv88e6xxx_g1_irq_setup.lock_key,4,2 ; @mv88e6xxx_g1_irq_setup.lock_key
.zerofill __DATA,__bss,_mv88e6xxx_g1_irq_setup.request_key,4,2 ; @mv88e6xxx_g1_irq_setup.request_key
	.comm	_mv88e6xxx_g1_irq_thread_fn,4,2 ; @mv88e6xxx_g1_irq_thread_fn
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_mv88e6xxx_g1_irq_setup
.subsections_via_symbols
