	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eepro_grab_irq
_eepro_grab_irq:                        ## @eepro_grab_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	l___const.eepro_grab_irq.irqlist+32(%rip), %eax
	movl	%eax, -64(%rbp)
	movaps	l___const.eepro_grab_irq.irqlist+16(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.eepro_grab_irq.irqlist(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	leaq	-96(%rbp), %rbx
	movl	(%rdi), %r13d
	movl	%r13d, %edi
	callq	_eepro_sw2bank1
	movl	%r13d, %edi
	callq	_eepro_en_intline
	movl	%r13d, %edi
	callq	_eepro_sw2bank0
	movl	%r13d, %edi
	callq	_eepro_clear_int
	movl	%r13d, %edi
	callq	_eepro_en_intexec
	movq	_INT_NO_REG@GOTPCREL(%rip), %r15
	movq	_irqrmap@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 4(%rbx)
	leaq	4(%rbx), %rbx
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_eepro_sw2bank1
	movl	(%r15), %edi
	addl	%r13d, %edi
	callq	_inb
	andl	$248, %eax
	movq	(%r12), %rcx
	movslq	(%rbx), %rdx
	orl	(%rcx,%rdx,4), %eax
	movl	(%r15), %esi
	addl	%r13d, %esi
	movl	%eax, %edi
	callq	_outb
	movl	%r13d, %edi
	callq	_eepro_sw2bank0
	movl	(%rbx), %edi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %r8
	callq	_request_irq
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_probe_irq_on
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	callq	_eepro_diag
	movl	$20, %edi
	callq	_mdelay
	movq	%r15, %r12
	movq	%r14, %r15
	movl	(%rbx), %r14d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_probe_irq_off
	cmpl	%eax, %r14d
	movq	%r15, %r14
	movq	%r12, %r15
	movq	_irqrmap@GOTPCREL(%rip), %r12
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_eepro_clear_int
	jmp	LBB0_4
LBB0_5:
	movl	%r13d, %edi
	callq	_eepro_sw2bank1
	movl	%r13d, %edi
	callq	_eepro_dis_intline
	movl	%r13d, %edi
	callq	_eepro_sw2bank0
	movl	%r13d, %edi
	callq	_eepro_dis_int
	movl	%r13d, %edi
	callq	_eepro_clear_int
	movl	4(%r14), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.eepro_grab_irq.irqlist
l___const.eepro_grab_irq.irqlist:
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	7                               ## 0x7
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	11                              ## 0xb
	.long	12                              ## 0xc
	.long	0                               ## 0x0

	.comm	_INT_NO_REG,4,2                 ## @INT_NO_REG
	.comm	_irqrmap,8,3                    ## @irqrmap
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bogus"

	.comm	_EBUSY,8,3                      ## @EBUSY
	.no_dead_strip	_eepro_grab_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eepro_grab_irq
_eepro_grab_irq:                        ; @eepro_grab_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.eepro_grab_irq.irqlist@PAGE
Lloh4:
	add	x8, x8, l___const.eepro_grab_irq.irqlist@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	w8, [x8, #32]
	str	w8, [sp, #32]
	mov	x23, sp
	ldr	w20, [x0]
	mov	x0, x20
	bl	_eepro_sw2bank1
	mov	x0, x20
	bl	_eepro_en_intline
	mov	x0, x20
	bl	_eepro_sw2bank0
	mov	x0, x20
	bl	_eepro_clear_int
	mov	x0, x20
	bl	_eepro_en_intexec
Lloh5:
	adrp	x24, _INT_NO_REG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _INT_NO_REG@GOTPAGEOFF]
Lloh7:
	adrp	x25, _irqrmap@GOTPAGE
Lloh8:
	ldr	x25, [x25, _irqrmap@GOTPAGEOFF]
Lloh9:
	adrp	x26, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x26, [x26, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
Lloh13:
	adrp	x27, _EBUSY@GOTPAGE
Lloh14:
	ldr	x27, [x27, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #4]!
	cbz	w8, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_eepro_sw2bank1
	ldr	w8, [x24]
	add	w0, w8, w20
	bl	_inb
	and	w8, w0, #0xf8
	ldr	x9, [x25]
	ldrsw	x10, [x23]
	ldr	w9, [x9, x10, lsl #2]
	orr	w0, w9, w8
	ldr	w8, [x24]
	add	w1, w8, w20
	bl	_outb
	mov	x0, x20
	bl	_eepro_sw2bank0
	ldr	w0, [x23]
	ldr	w2, [x26]
	mov	x1, #0
	mov	x3, x21
	mov	x4, x19
	bl	_request_irq
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_probe_irq_on
	mov	x22, x0
	mov	x0, x20
	bl	_eepro_diag
	mov	w0, #20
	bl	_mdelay
	ldr	w28, [x23]
	mov	x0, x22
	bl	_probe_irq_off
	cmp	w28, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_eepro_clear_int
	b	LBB0_1
LBB0_5:
	mov	x0, x20
	bl	_eepro_sw2bank1
	mov	x0, x20
	bl	_eepro_dis_intline
	mov	x0, x20
	bl	_eepro_sw2bank0
	mov	x0, x20
	bl	_eepro_dis_int
	mov	x0, x20
	bl	_eepro_clear_int
	ldr	w0, [x19, #4]
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.eepro_grab_irq.irqlist
l___const.eepro_grab_irq.irqlist:
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	0                               ; 0x0

	.comm	_INT_NO_REG,4,2                 ; @INT_NO_REG
	.comm	_irqrmap,8,3                    ; @irqrmap
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bogus"

	.comm	_EBUSY,8,3                      ; @EBUSY
	.no_dead_strip	_eepro_grab_irq
.subsections_via_symbols
