	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_get_irqs
_xgene_enet_get_irqs:                   ## @xgene_enet_get_irqs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	32(%r15), %r14
	callq	_phy_interface_mode_is_rgmii
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rdx
	movl	$2, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.2:
	movq	_XGENE_MAX_ENET_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
LBB0_3:
	movl	%ecx, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	jle	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
	jmp	LBB0_9
LBB0_5:
	movq	(%r15), %rcx
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	shrl	%ebx
	movl	%ebx, 8(%r15)
	movl	%ebx, 12(%r15)
	movl	%ebx, 16(%r15)
LBB0_9:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovnel	%eax, %ecx
LBB0_10:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_XGENE_MAX_ENET_IRQ,4,2         ## @XGENE_MAX_ENET_IRQ
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_xgene_enet_get_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_get_irqs
_xgene_enet_get_irqs:                   ; @xgene_enet_get_irqs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	x0, [x0]
	bl	_phy_interface_mode_is_rgmii
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #2
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _XGENE_MAX_ENET_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XGENE_MAX_ENET_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
LBB0_5:
	mov	x21, #0
	mov	w22, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_platform_get_irq
	cmp	w0, #0
	b.le	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	ubfx	x8, x21, #1, #31
	stp	w8, w8, [x19, #8]
	str	w8, [x19, #16]
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, ne
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_XGENE_MAX_ENET_IRQ,4,2         ; @XGENE_MAX_ENET_IRQ
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_xgene_enet_get_irqs
.subsections_via_symbols
