	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_static_config_reload   ## -- Begin function sja1105_static_config_reload
	.p2align	4, 0x90
_sja1105_static_config_reload:          ## @sja1105_static_config_reload
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.1:
	movq	(%r14), %rax
	movq	_BLK_IDX_MAC_CONFIG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_sja1105_speed@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$1, %r13d
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	movl	%r13d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	_SJA1105_SPEED_AUTO@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, (%r12,%rdx,4)
	movq	(%rdi), %rbx
	movq	%rbx, (%rax,%rdx,8)
	movq	8(%rax,%rdx,8), %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, 4(%r12,%rdx,4)
	movq	(%rdi), %rbx
	movq	%rbx, 8(%rax,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_4
LBB0_5:
	testb	$1, %r13b
	je	LBB0_7
## %bb.6:
	movq	(%rax,%rdx,8), %rsi
	movl	(%rcx,%rsi,4), %ecx
	movl	%ecx, (%r12,%rdx,4)
	movq	_SJA1105_SPEED_AUTO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%rdx,8)
LBB0_7:
	movq	%r14, %rdi
	callq	_sja1105_static_config_upload
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	callq	_sja1105_clocking_setup
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sja1105_adjust_port_config
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_12
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_BLK_IDX_MAC_CONFIG,8,3         ## @BLK_IDX_MAC_CONFIG
	.comm	_sja1105_speed,8,3              ## @sja1105_speed
	.comm	_SJA1105_SPEED_AUTO,8,3         ## @SJA1105_SPEED_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_static_config_reload   ; -- Begin function sja1105_static_config_reload
	.p2align	2
_sja1105_static_config_reload:          ; @sja1105_static_config_reload
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _SJA1105_NUM_PORTS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w12, [x21]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _BLK_IDX_MAC_CONFIG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BLK_IDX_MAC_CONFIG@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh10:
	adrp	x9, _sja1105_speed@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sja1105_speed@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _SJA1105_SPEED_AUTO@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SJA1105_SPEED_AUTO@GOTPAGEOFF]
	mov	x11, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x8]
	ldr	w13, [x9, x13, lsl #2]
	str	w13, [x11], #4
	ldr	x13, [x10]
	str	x13, [x8], #8
	subs	x12, x12, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_sja1105_static_config_upload
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_sja1105_clocking_setup
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22, x20, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_sja1105_adjust_port_config
	tbnz	w0, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #32
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_BLK_IDX_MAC_CONFIG,8,3         ; @BLK_IDX_MAC_CONFIG
	.comm	_sja1105_speed,8,3              ; @sja1105_speed
	.comm	_SJA1105_SPEED_AUTO,8,3         ; @SJA1105_SPEED_AUTO
.subsections_via_symbols
