	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	36(%rax), %edi
	movq	_EHEA_IRQ_NAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_ehea_qp_aff_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	36(%r15), %ecx
	movq	%r15, %r8
	callq	_ibmebus_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	movq	8(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ehea_error
LBB0_2:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_ibmebus_free_irq
	jmp	LBB0_15
LBB0_3:
	movq	%r15, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ehea_info
LBB0_5:
	cmpl	$0, (%r15)
	jle	LBB0_14
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$40, %r13
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r14
	leaq	(%r14,%r13), %r12
	movl	32(%r14,%r13), %edi
	movq	_EHEA_IRQ_NAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %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
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%r14,%r13), %ecx
	movq	%r12, %r8
	callq	_ibmebus_request_irq
	testl	%eax, %eax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r14,%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ehea_info
	jmp	LBB0_13
LBB0_14:
	xorl	%r12d, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %r12d
	movq	24(%r14,%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ehea_error
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.9:
	addq	$-40, %r13
	incq	%rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %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_2
	.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
	.comm	_IRQF_DISABLED,4,2              ## @IRQF_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"failed registering irq for qp_aff_irq_handler:ist=%X"

L_.str.2:                               ## @.str.2
	.asciz	"irq_handle 0x%X for function qp_aff_irq_handler registered"

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"

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

	.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]
Lloh4:
	adrp	x9, _ehea_qp_aff_irq_handler@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ehea_qp_aff_irq_handler@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh6:
	ldr	w1, [x9]
Lloh7:
	adrp	x27, _IRQF_DISABLED@GOTPAGE
Lloh8:
	ldr	x27, [x27, _IRQF_DISABLED@GOTPAGEOFF]
	ldr	w2, [x27]
	ldr	w3, [x19, #36]
	mov	x4, x19
	bl	_ibmebus_request_irq
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ehea_error
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ibmebus_free_irq
	b	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ehea_info
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x28, #0
	mov	x21, #0
Lloh13:
	adrp	x23, l_.str.3@PAGE
Lloh14:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh15:
	adrp	x24, _ehea_recv_irq_handler@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ehea_recv_irq_handler@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x28, x28, #40
	cmp	x21, x8
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x25, x8, x28
	ldr	w0, [x25, #32]
	ldr	x8, [x26]
	sub	x1, x8, #1
	ldr	x3, [x20]
	str	x21, [sp]
	mov	x2, x23
	bl	_snprintf
	ldr	x8, [x25, #24]
	ldr	w0, [x8]
	ldr	w1, [x24]
	ldr	w2, [x27]
	ldr	w3, [x25, #32]
	mov	x4, x25
	bl	_ibmebus_request_irq
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x25, #24]
	ldr	w1, [x8]
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_ehea_info
	b	LBB0_7
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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_13:
	mov	x22, x0
	ldr	x8, [x25, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_ehea_error
	cbz	w21, LBB0_2
; %bb.14:
	sub	x20, x28, #16
	add	x21, x21, #1
LBB0_15:                                ; =>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	x21, x21, #1
	sub	x20, x20, #40
	cmp	x21, #1
	b.gt	LBB0_15
	b	LBB0_2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.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
	.comm	_IRQF_DISABLED,4,2              ; @IRQF_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"failed registering irq for qp_aff_irq_handler:ist=%X"

l_.str.2:                               ; @.str.2
	.asciz	"irq_handle 0x%X for function qp_aff_irq_handler registered"

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"

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

	.no_dead_strip	_ehea_reg_interrupts
.subsections_via_symbols
