	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ql_get_xgmac_regs
LCPI0_0:
	.long	4294966959                      ## 0xfffffeaf
	.long	4294966663                      ## 0xfffffd87
	.long	4294966591                      ## 0xfffffd3f
	.long	4294966563                      ## 0xfffffd23
LCPI0_1:
	.long	4294966327                      ## 0xfffffc37
	.long	4294966271                      ## 0xfffffbff
	.long	4294966255                      ## 0xfffffbef
	.long	4294966239                      ## 0xfffffbdf
LCPI0_2:
	.long	54                              ## 0x36
	.long	14                              ## 0xe
	.long	14                              ## 0xe
	.long	14                              ## 0xe
LCPI0_3:
	.long	170                             ## 0xaa
	.long	38                              ## 0x26
	.long	13                              ## 0xd
	.long	18                              ## 0x12
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ql_get_xgmac_regs:                     ## @ql_get_xgmac_regs
	.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	_PAUSE_SRC_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_XGMAC_REGISTER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	cmpl	%r13d, %ecx
	jge	LBB0_17
## %bb.1:
	movq	%rsi, %r14
	leal	-1073(%rcx), %r8d
	leal	-1089(%rcx), %r9d
	leal	-1105(%rcx), %r10d
	leal	-1357(%rcx), %r11d
	leal	-1481(%rcx), %r15d
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294966959,4294966663,4294966591,4294966563]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4294966327,4294966271,4294966255,4294966239]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [54,14,14,14]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [170,38,13,18]
	movabsq	$18691697672209, %r12           ## imm = 0x110000000011
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rax), %rsi
	leal	-276(%rsi), %ebx
	cmpl	$44, %ebx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	btq	%rbx, %r12
	jb	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movd	%esi, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	movdqa	%xmm4, %xmm5
	paddd	%xmm0, %xmm5
	paddd	%xmm1, %xmm4
	movdqa	%xmm4, %xmm6
	pminud	%xmm2, %xmm6
	pcmpeqd	%xmm4, %xmm6
	movdqa	%xmm5, %xmm4
	pminud	%xmm3, %xmm4
	pcmpeqd	%xmm5, %xmm4
	packssdw	%xmm6, %xmm4
	pmovmskb	%xmm4, %ebx
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r8,%rax), %ebx
	cmpl	$15, %ebx
	jb	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r9,%rax), %ebx
	cmpl	$15, %ebx
	jb	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r10,%rax), %ebx
	cmpl	$175, %ebx
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r11,%rax), %ebx
	cmpl	$27, %ebx
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r15,%rax), %ebx
	cmpl	$54, %ebx
	jbe	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rax
	leal	(%rax,%rcx), %esi
	cmpl	%r13d, %esi
	jl	LBB0_2
	jmp	LBB0_16
LBB0_10:
	addq	%rax, %r14
                                        ## kill: def $esi killed $esi killed $rsi
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdx
	callq	_ql_read_other_func_xgmac_reg
	testl	%eax, %eax
	je	LBB0_16
LBB0_14:
	movl	$-559038737, (%r14)             ## imm = 0xDEADBEEF
	jmp	LBB0_17
LBB0_12:
	movq	%r14, %rdx
	callq	_ql_read_xgmac_reg
	testl	%eax, %eax
	jne	LBB0_14
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAUSE_SRC_LO,4,2               ## @PAUSE_SRC_LO
	.comm	_XGMAC_REGISTER_END,4,2         ## @XGMAC_REGISTER_END
	.no_dead_strip	_ql_get_xgmac_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ql_get_xgmac_regs
lCPI0_0:
	.long	4294966959                      ; 0xfffffeaf
	.long	4294966663                      ; 0xfffffd87
	.long	4294966591                      ; 0xfffffd3f
	.long	4294966563                      ; 0xfffffd23
lCPI0_1:
	.long	4294966327                      ; 0xfffffc37
	.long	4294966271                      ; 0xfffffbff
	.long	4294966255                      ; 0xfffffbef
	.long	4294966239                      ; 0xfffffbdf
lCPI0_2:
	.long	55                              ; 0x37
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	15                              ; 0xf
lCPI0_3:
	.long	171                             ; 0xab
	.long	39                              ; 0x27
	.long	14                              ; 0xe
	.long	19                              ; 0x13
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ql_get_xgmac_regs:                     ; @ql_get_xgmac_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _PAUSE_SRC_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAUSE_SRC_LO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _XGMAC_REGISTER_END@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XGMAC_REGISTER_END@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	cmp	w9, w10
	b.ge	LBB0_8
; %bb.1:
	mov	x11, #0
	sub	w12, w9, #1073
	sub	w13, w9, #1089
	sub	w14, w9, #1105
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	sub	w15, w9, #1357
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	q1, [x8, lCPI0_1@PAGEOFF]
	sub	w16, w9, #1481
Lloh10:
	adrp	x8, lCPI0_2@PAGE
Lloh11:
	ldr	q2, [x8, lCPI0_2@PAGEOFF]
	mov	w17, #1
Lloh12:
	adrp	x8, lCPI0_3@PAGE
Lloh13:
	ldr	q3, [x8, lCPI0_3@PAGEOFF]
	mov	x3, #17
	movk	x3, #4352, lsl #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x9, x11
	sub	w4, w8, #276
	cmp	w4, #44
	lsl	x4, x17, x4
	and	x4, x4, x3
	ccmp	x4, #0, #4, ls
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	dup.4s	v4, w8
	add.4s	v5, v4, v0
	add.4s	v4, v4, v1
	cmhi.4s	v4, v2, v4
	cmhi.4s	v5, v3, v5
	uzp1.8h	v4, v5, v4
	xtn.8b	v4, v4
	umov.b	w4, v4[1]
	and	w4, w4, #0x1
	umov.b	w5, v4[0]
	and	w5, w5, #0x1
	bfi	w5, w4, #1, #1
	umov.b	w4, v4[2]
	and	w4, w4, #0x1
	umov.b	w6, v4[3]
	bfi	w5, w4, #2, #1
	and	w4, w6, #0x1
	bfi	w5, w4, #3, #1
	umov.b	w4, v4[4]
	and	w4, w4, #0x1
	bfi	w5, w4, #4, #1
	umov.b	w4, v4[5]
	and	w4, w4, #0x1
	umov.b	w6, v4[6]
	bfi	w5, w4, #5, #1
	and	w4, w6, #0x1
	orr	w4, w5, w4, lsl #6
	umov.b	w5, v4[7]
	orr	w4, w4, w5, lsl #7
	and	w4, w4, #0xff
	add	w5, w12, w11
	add	w6, w13, w11
	cmp	w4, #0
	ccmp	w5, #15, #0, eq
	ccmp	w6, #15, #0, hs
	b.lo	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w4, w14, w11
	cmp	w4, #175
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w4, w15, w11
	cmp	w4, #27
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w4, w16, w11
	cmp	w4, #54
	b.ls	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #4
	add	w8, w9, w11
	cmp	w8, w10
	b.lt	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	add	x19, x1, x11
	mov	x1, x8
	cbz	w2, LBB0_13
; %bb.10:
	mov	x2, x19
	bl	_ql_read_other_func_xgmac_reg
	cbz	w0, LBB0_12
LBB0_11:
	mov	w8, #48879
	movk	w8, #57005, lsl #16
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	mov	x2, x19
	bl	_ql_read_xgmac_reg
	cbnz	w0, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAUSE_SRC_LO,4,2               ; @PAUSE_SRC_LO
	.comm	_XGMAC_REGISTER_END,4,2         ; @XGMAC_REGISTER_END
	.no_dead_strip	_ql_get_xgmac_regs
.subsections_via_symbols
