	.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	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %r13
	movl	(%rax), %edi
	movq	_E1000E_INT_MODE_LEGACY@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	$0, (%rsi)
	movl	(%rbx), %r14d
	movq	_E1000E_INT_MODE_MSIX@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r14d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_e1000e_reset_interrupt_capability
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_e1000e_set_interrupt_capability
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %eax
LBB0_2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_e1000_test_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_PROBE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movl	%edi, %r14d
	movq	%r13, %r8
	callq	_request_irq
	movq	%r13, %r15
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_e1000_test_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	%r14d, %edi
	movq	%r15, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_5
## %bb.25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$-1, %r15d
	jmp	LBB0_22
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_e_info
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_ICS@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r12d
	cmpl	$10, %r12d
	je	LBB0_21
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_FLAG_IS_ICH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$128, %r15d
	je	LBB0_26
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %eax
	movq	_e1000_ich8lan@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_e1000_ich9lan@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_26
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%r13, %r13
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ew32
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	testl	%r15d, 8(%rbx)
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	movq	_IMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ew32
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	testl	%r15d, 8(%rbx)
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%r13, %r13
	jne	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%r15d
	andl	$32767, %r15d                   ## imm = 0x7FFF
	movl	%r15d, %esi
	callq	_ew32
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	cmpl	$0, 8(%rbx)
	je	LBB0_26
## %bb.19:
	movl	$5, %eax
	jmp	LBB0_20
LBB0_16:
	movl	$4, %eax
	jmp	LBB0_20
LBB0_14:
	movl	$3, %eax
LBB0_20:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_21:
	movq	_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ew32
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_free_irq
	movq	_E1000E_INT_MODE_MSIX@GOTPCREL(%rip), %r12
LBB0_22:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	(%r12), %r14d
	jne	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	_e1000e_reset_interrupt_capability
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	_e1000e_set_interrupt_capability
LBB0_24:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000E_INT_MODE_LEGACY,8,3     ## @E1000E_INT_MODE_LEGACY
	.comm	_E1000E_INT_MODE_MSIX,4,2       ## @E1000E_INT_MODE_MSIX
	.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	_FLAG_IS_ICH,4,2                ## @FLAG_IS_ICH
	.comm	_e1000_ich8lan,4,2              ## @e1000_ich8lan
	.comm	_e1000_ich9lan,4,2              ## @e1000_ich9lan
	.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	x26, x1
	mov	x19, x0
	ldp	x8, x20, [x0, #16]
	ldr	w21, [x8]
Lloh0:
	adrp	x23, _E1000E_INT_MODE_LEGACY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E1000E_INT_MODE_LEGACY@GOTPAGEOFF]
	ldr	w25, [x23]
	str	wzr, [x1]
	ldr	w22, [x0]
Lloh2:
	adrp	x24, _E1000E_INT_MODE_MSIX@GOTPAGE
Lloh3:
	ldr	x24, [x24, _E1000E_INT_MODE_MSIX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_e1000e_reset_interrupt_capability
	ldr	x8, [x23]
	str	w8, [x19]
	mov	x0, x19
	bl	_e1000e_set_interrupt_capability
	mov	x25, x22
LBB0_2:
Lloh4:
	adrp	x22, _e1000_test_intr@GOTPAGE
Lloh5:
	ldr	x22, [x22, _e1000_test_intr@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _IRQF_PROBE_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_PROBE_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x21
	mov	x4, x20
	bl	_request_irq
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x21
	mov	x4, x20
	bl	_request_irq
	cbz	x0, LBB0_6
; %bb.4:
	mov	w8, #1
	str	w8, [x26]
	mov	w20, #-1
	b	LBB0_23
LBB0_5:
	str	x26, [sp]                       ; 8-byte Folded Spill
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	str	x26, [sp]                       ; 8-byte Folded Spill
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_info
Lloh18:
	adrp	x28, _IMC@GOTPAGE
Lloh19:
	ldr	x28, [x28, _IMC@GOTPAGEOFF]
	ldr	w0, [x28]
	mov	w1, #-1
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	w24, #0
Lloh20:
	adrp	x26, _FLAG_IS_ICH@GOTPAGE
Lloh21:
	ldr	x26, [x26, _FLAG_IS_ICH@GOTPAGEOFF]
Lloh22:
	adrp	x22, _ICS@GOTPAGE
Lloh23:
	ldr	x22, [x22, _ICS@GOTPAGEOFF]
Lloh24:
	adrp	x27, _IMS@GOTPAGE
Lloh25:
	ldr	x27, [x27, _IMS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w24, #1
	cmp	w24, #10
	b.eq	LBB0_22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_BIT
	mov	x25, x0
	ldr	w8, [x19, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w25, #128
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w25, #256
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #12]
Lloh26:
	adrp	x9, _e1000_ich8lan@GOTPAGE
Lloh27:
	ldr	x9, [x9, _e1000_ich8lan@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _e1000_ich9lan@GOTPAGE
Lloh30:
	ldr	x10, [x10, _e1000_ich9lan@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x23, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x19, #8]
	ldr	w0, [x28]
	mov	x1, x25
	bl	_ew32
	ldr	w0, [x22]
	mov	x1, x25
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x19, #8]
	tst	w8, w25
	b.ne	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x19, #8]
	ldr	w0, [x27]
	mov	x1, x25
	bl	_ew32
	ldr	w0, [x22]
	mov	x1, x25
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x19, #8]
	tst	w8, w25
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x23, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x19, #8]
	ldr	w0, [x28]
	mvn	w8, w25
	and	w25, w8, #0x7fff
	mov	x1, x25
	bl	_ew32
	ldr	w0, [x22]
	mov	x1, x25
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.18:
	mov	w8, #5
	b	LBB0_21
LBB0_19:
	mov	w8, #4
	b	LBB0_21
LBB0_20:
	mov	w8, #3
LBB0_21:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_22:
	ldr	w0, [x28]
	mov	w1, #-1
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x21
	mov	x1, x20
	bl	_free_irq
	mov	w20, #0
Lloh32:
	adrp	x24, _E1000E_INT_MODE_MSIX@GOTPAGE
Lloh33:
	ldr	x24, [x24, _E1000E_INT_MODE_MSIX@GOTPAGEOFF]
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
LBB0_23:
	ldr	w8, [x24]
	cmp	w25, w8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_e1000e_reset_interrupt_capability
	str	w25, [x19]
	mov	x0, x19
	bl	_e1000e_set_interrupt_capability
LBB0_25:
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000E_INT_MODE_LEGACY,8,3     ; @E1000E_INT_MODE_LEGACY
	.comm	_E1000E_INT_MODE_MSIX,4,2       ; @E1000E_INT_MODE_MSIX
	.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	_FLAG_IS_ICH,4,2                ; @FLAG_IS_ICH
	.comm	_e1000_ich8lan,4,2              ; @e1000_ich8lan
	.comm	_e1000_ich9lan,4,2              ; @e1000_ich9lan
	.comm	_ICS,4,2                        ; @ICS
	.comm	_IMS,4,2                        ; @IMS
	.no_dead_strip	_e1000_intr_test
.subsections_via_symbols
