	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sja1105_init_mac_settings
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	63                              ## 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sja1105_init_mac_settings:             ## @sja1105_init_mac_settings
	.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	_SJA1105_SPEED_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%rdi), %r13
	movq	_BLK_IDX_MAC_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r15
	leaq	(,%r15,8), %rbx
	addq	%r13, %rbx
	cmpl	$0, (%r13,%r15,8)
	je	LBB0_2
## %bb.1:
	movq	8(%r13,%r15,8), %rdi
	callq	_kfree
	movl	$0, (%rbx)
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r13,%r15,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	movq	%rax, 8(%r13,%r15,8)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.5:
	addq	$60, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$76, %rbx
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movabsq	$4294967551, %rax               ## imm = 0x1000000FF
	movq	%rax, -60(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -52(%rbx)
	movups	%xmm0, -36(%rbx)
	movups	%xmm0, -20(%rbx)
	movl	%r12d, -4(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,0,63]
	movups	%xmm0, (%rbx)
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_dsa_upstream_port
	movl	%eax, %eax
	cmpq	%rax, %r15
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -28(%rbx)
	movl	$1, -20(%rbx)
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_SPEED_AUTO,4,2         ## @SJA1105_SPEED_AUTO
	.comm	_BLK_IDX_MAC_CONFIG,8,3         ## @BLK_IDX_MAC_CONFIG
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sja1105_init_mac_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sja1105_init_mac_settings
lCPI0_0:
	.long	255                             ; 0xff
	.long	1                               ; 0x1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	63                              ; 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sja1105_init_mac_settings:             ; @sja1105_init_mac_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _SJA1105_SPEED_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1105_SPEED_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x23, [x0, #8]
Lloh3:
	adrp	x8, _BLK_IDX_MAC_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_IDX_MAC_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	mov	w8, #24
	madd	x20, x24, x8, x23
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x8, x24, x8, x23
	ldr	x0, [x8, #8]
	bl	_kfree
	str	wzr, [x20]
LBB0_2:
Lloh6:
	adrp	x22, _SJA1105_NUM_PORTS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w8, #24
	madd	x23, x24, x8, x23
	ldr	x8, [x23, #16]
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_kcalloc
	str	x0, [x23, #8]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x22]
	str	w8, [x20]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x20, #0
	add	x23, x0, #60
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh13:
	adrp	x8, lCPI0_1@PAGE
Lloh14:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	w24, #1
	movi.2s	v9, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x23, x23, #76
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stur	d8, [x23, #-60]
	movi.2d	v0, #0000000000000000
	stur	q0, [x23, #-52]
	stur	q0, [x23, #-36]
	stur	q0, [x23, #-20]
	stur	w21, [x23, #-4]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x23]
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dsa_upstream_port
	cmp	x20, w0, uxtw
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	w24, [x23, #-20]
	stur	d9, [x23, #-28]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_SPEED_AUTO,4,2         ; @SJA1105_SPEED_AUTO
	.comm	_BLK_IDX_MAC_CONFIG,8,3         ; @BLK_IDX_MAC_CONFIG
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sja1105_init_mac_settings
.subsections_via_symbols
