	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_intr_test
_e1000_intr_test:                       ## @e1000_intr_test
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %r12
	movl	(%rax), %r14d
	movl	$0, (%rsi)
	movq	_e1000_test_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_PROBE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movq	%r12, %r8
	callq	_request_irq
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_e1000_test_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movl	%r14d, %edi
	movq	%r12, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_3
## %bb.16:
	movl	$1, (%r15)
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_4
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	leaq	4(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_e_info
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	movq	_ICS@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	cmpl	$10, %r15d
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r14d
	movl	%r15d, %ecx
	shll	%cl, %r14d
	testq	%r13, %r13
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%rbx)
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_ew32
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	testl	%r14d, (%rbx)
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%rbx)
	movq	_IMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_ew32
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	testl	%r14d, (%rbx)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r13, %r13
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%rbx)
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	$32767, %r14d                   ## imm = 0x7FFF
	movl	%r14d, %esi
	callq	_ew32
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	cmpl	$0, (%rbx)
	je	LBB0_17
## %bb.12:
	movl	$5, %eax
	jmp	LBB0_13
LBB0_9:
	movl	$4, %eax
	jmp	LBB0_13
LBB0_7:
	movl	$3, %eax
LBB0_13:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_14:
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$10, %edi
	callq	_msleep
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_free_irq
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_test_intr,4,2            ## @e1000_test_intr
	.comm	_IRQF_PROBE_SHARED,4,2          ## @IRQF_PROBE_SHARED
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testing %s interrupt\n"

L_.str.1:                               ## @.str.1
	.asciz	"shared"

L_.str.2:                               ## @.str.2
	.asciz	"unshared"

	.comm	_IMC,4,2                        ## @IMC
	.comm	_ICS,4,2                        ## @ICS
	.comm	_IMS,4,2                        ## @IMS
	.no_dead_strip	_e1000_intr_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_intr_test
_e1000_intr_test:                       ; @e1000_intr_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x22, x0
	ldp	x8, x20, [x0, #8]
	ldr	w24, [x8]
Lloh0:
	adrp	x21, _e1000_test_intr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _e1000_test_intr@GOTPAGEOFF]
	str	wzr, [x1]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _IRQF_PROBE_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_PROBE_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x24
	mov	x4, x20
	bl	_request_irq
	mov	x23, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x24
	mov	x4, x20
	bl	_request_irq
	cbz	x0, LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #-1
	b	LBB0_17
LBB0_3:
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_5:
	add	x0, x22, #4
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_info
Lloh14:
	adrp	x25, _IMC@GOTPAGE
Lloh15:
	ldr	x25, [x25, _IMC@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w1, #-1
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	mov	w26, #0
	mov	w27, #1
Lloh16:
	adrp	x28, _ICS@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ICS@GOTPAGEOFF]
Lloh18:
	adrp	x21, _IMS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _IMS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w26, w26, #1
	cmp	w26, #10
	b.eq	LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w24, w27, w26
	cbnz	x23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22]
	ldr	w0, [x25]
	mov	x1, x24
	bl	_ew32
	ldr	w0, [x28]
	mov	x1, x24
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x22]
	tst	w8, w24
	b.ne	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22]
	ldr	w0, [x21]
	mov	x1, x24
	bl	_ew32
	ldr	w0, [x28]
	mov	x1, x24
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x22]
	tst	w8, w24
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x23, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22]
	ldr	w0, [x25]
	eor	w24, w24, #0x7fff
	mov	x1, x24
	bl	_ew32
	ldr	w0, [x28]
	mov	x1, x24
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.12:
	mov	w8, #5
	b	LBB0_15
LBB0_13:
	mov	w8, #4
	b	LBB0_15
LBB0_14:
	mov	w8, #3
LBB0_15:
	str	w8, [x19]
LBB0_16:
	ldr	w0, [x25]
	mov	w1, #-1
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #10
	bl	_msleep
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	x1, x20
	bl	_free_irq
	ldr	w0, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_test_intr,4,2            ; @e1000_test_intr
	.comm	_IRQF_PROBE_SHARED,4,2          ; @IRQF_PROBE_SHARED
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testing %s interrupt\n"

l_.str.1:                               ; @.str.1
	.asciz	"shared"

l_.str.2:                               ; @.str.2
	.asciz	"unshared"

	.comm	_IMC,4,2                        ; @IMC
	.comm	_ICS,4,2                        ; @ICS
	.comm	_IMS,4,2                        ; @IMS
	.no_dead_strip	_e1000_intr_test
.subsections_via_symbols
