	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_parse_rgmii_delays
_sja1105_parse_rgmii_delays:            ## @sja1105_parse_rgmii_delays
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_14
## %bb.1:
	movq	(%rsi), %r14
	movq	_XMII_MAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	xorl	%eax, %eax
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movslq	(%r8), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %r14
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsi), %rbx
	cmpq	%r9, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r11), %rcx
	cmpq	%rcx, %rbx
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rcx
	movl	$1, (%rcx,%rax,4)
	movq	(%r11), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r10, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rbx
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rcx
	movl	$1, (%rcx,%rax,4)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rcx
	cmpl	$0, (%rcx,%rax,4)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rcx
	cmpl	$0, (%rcx,%rax,4)
	jne	LBB0_11
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_XMII_MAC,8,3                   ## @XMII_MAC
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sja1105_parse_rgmii_delays
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_parse_rgmii_delays
_sja1105_parse_rgmii_delays:            ; @sja1105_parse_rgmii_delays
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SJA1105_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x9, #0
	ldr	x10, [x1]
Lloh2:
	adrp	x11, _XMII_MAC@GOTPAGE
Lloh3:
	ldr	x11, [x11, _XMII_MAC@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
Lloh5:
	adrp	x12, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
Lloh8:
	adrp	x13, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh9:
	ldr	x13, [x13, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
Lloh10:
	ldr	x13, [x13]
Lloh11:
	adrp	x14, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh12:
	ldr	x14, [x14, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
	mov	w15, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x0, #16]
	ldr	w16, [x16]
	cbz	w16, LBB0_12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	ldrsw	x16, [x8]
	cmp	x9, x16
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x11
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x1, #8]
	ldr	x17, [x14]
	cmp	x16, x12
	ccmp	x16, x17, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x0]
	str	w15, [x17, x9, lsl #2]
	ldr	x17, [x14]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x16, x13
	ccmp	x16, x17, #4, ne
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x0, #8]
	str	w15, [x16, x9, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x0]
	ldr	w16, [x16, x9, lsl #2]
	cbnz	w16, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x0, #8]
	ldr	w16, [x16, x9, lsl #2]
	cbnz	w16, LBB0_2
	b	LBB0_3
LBB0_11:
	mov	w0, #0
	ret
LBB0_12:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_XMII_MAC,8,3                   ; @XMII_MAC
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sja1105_parse_rgmii_delays
.subsections_via_symbols
