	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_reg_interrupts
_ehea_reg_interrupts:                   ## @ehea_reg_interrupts
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movl	36(%rax), %edi
	movq	_EHEA_IRQ_NAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_ehea_qp_aff_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%r12), %ecx
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_ibmebus_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
LBB0_11:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_ibmebus_free_irq
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r12), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_netif_info
	cmpl	$0, (%r12)
	movl	$0, %r14d
	jle	LBB0_8
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r14
	leaq	(%r14,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r14,%r13), %edi
	movq	_EHEA_IRQ_NAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	(%r15), %rcx
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movq	24(%r14,%r13), %rax
	movl	(%rax), %edi
	movq	_ehea_recv_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14,%r13), %ecx
	xorl	%edx, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_ibmebus_request_irq
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r14,%r13), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%r15, %rdx
	leaq	L_.str.5(%rip), %rcx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netif_info
	incq	%rbx
	movslq	(%r12), %rax
	addq	$40, %r13
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_8
LBB0_5:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r14,%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.9:
	addq	$-40, %r13
	incq	%rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rsi
	movq	24(%rsi,%r13), %rax
	addq	%r13, %rsi
	movl	(%rax), %edi
	callq	_ibmebus_free_irq
	decq	%rbx
	addq	$-40, %r13
	cmpq	$1, %rbx
	jg	LBB0_10
	jmp	LBB0_11
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_IRQ_NAME_SIZE,8,3         ## @EHEA_IRQ_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-aff"

	.comm	_ehea_qp_aff_irq_handler,4,2    ## @ehea_qp_aff_irq_handler
L_.str.1:                               ## @.str.1
	.asciz	"failed registering irq for qp_aff_irq_handler:ist=%X\n"

	.comm	_ifup,4,2                       ## @ifup
L_.str.2:                               ## @.str.2
	.asciz	"irq_handle 0x%X for function qp_aff_irq_handler registered\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s-queue%d"

	.comm	_ehea_recv_irq_handler,4,2      ## @ehea_recv_irq_handler
L_.str.4:                               ## @.str.4
	.asciz	"failed registering irq for ehea_queue port_res_nr:%d, ist=%X\n"

L_.str.5:                               ## @.str.5
	.asciz	"irq_handle 0x%X for function ehea_queue_int %d registered\n"

	.no_dead_strip	_ehea_reg_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_reg_interrupts
_ehea_reg_interrupts:                   ; @ehea_reg_interrupts
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #36]
Lloh0:
	adrp	x26, _EHEA_IRQ_NAME_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EHEA_IRQ_NAME_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
	sub	x1, x8, #1
	ldr	x3, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _ehea_qp_aff_irq_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ehea_qp_aff_irq_handler@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w3, [x19, #36]
	mov	w2, #0
	mov	x4, x19
	bl	_ibmebus_request_irq
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ibmebus_free_irq
	b	LBB0_8
LBB0_3:
Lloh9:
	adrp	x8, _ifup@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w4, [x8]
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_info
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x27, #0
	mov	x22, #0
Lloh14:
	adrp	x23, l_.str.3@PAGE
Lloh15:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh16:
	adrp	x28, _ehea_recv_irq_handler@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ehea_recv_irq_handler@GOTPAGEOFF]
Lloh18:
	adrp	x24, l_.str.5@PAGE
Lloh19:
	add	x24, x24, l_.str.5@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x25, x8, x27
	ldr	w0, [x25, #32]
	ldr	x8, [x26]
	sub	x1, x8, #1
	ldr	x3, [x20]
	str	x22, [sp]
	mov	x2, x23
	bl	_snprintf
	ldr	x8, [x25, #24]
	ldr	w0, [x8]
	ldr	w1, [x28]
	ldr	w3, [x25, #32]
	mov	w2, #0
	mov	x4, x25
	bl	_ibmebus_request_irq
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _ifup@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x8, [x25, #24]
	ldr	w4, [x8]
	str	x22, [sp]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x24
	bl	_netif_info
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x27, x27, #40
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	mov	x21, x0
	ldr	x8, [x25, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_netdev_err
	cbz	w22, LBB0_2
; %bb.10:
	sub	x20, x27, #16
	add	x22, x22, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x20
	ldr	x8, [x1], #-24
	ldr	w0, [x8]
	bl	_ibmebus_free_irq
	sub	x22, x22, #1
	sub	x20, x20, #40
	cmp	x22, #1
	b.gt	LBB0_11
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_IRQ_NAME_SIZE,8,3         ; @EHEA_IRQ_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-aff"

	.comm	_ehea_qp_aff_irq_handler,4,2    ; @ehea_qp_aff_irq_handler
l_.str.1:                               ; @.str.1
	.asciz	"failed registering irq for qp_aff_irq_handler:ist=%X\n"

	.comm	_ifup,4,2                       ; @ifup
l_.str.2:                               ; @.str.2
	.asciz	"irq_handle 0x%X for function qp_aff_irq_handler registered\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s-queue%d"

	.comm	_ehea_recv_irq_handler,4,2      ; @ehea_recv_irq_handler
l_.str.4:                               ; @.str.4
	.asciz	"failed registering irq for ehea_queue port_res_nr:%d, ist=%X\n"

l_.str.5:                               ; @.str.5
	.asciz	"irq_handle 0x%X for function ehea_queue_int %d registered\n"

	.no_dead_strip	_ehea_reg_interrupts
.subsections_via_symbols
