	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmac_nicpm_speed_set
_bgmac_nicpm_speed_set:                 ## @bgmac_nicpm_speed_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_NICPM_PADRING_CFG_INIT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NICPM_PADRING_CFG@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	_NICPM_IOMUX_CTRL_INIT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.bgmac_nicpm_speed_set(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_NICPM_IOMUX_CTRL_SPD_1000M@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	movq	_NICPM_IOMUX_CTRL_SPD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%r15d, %edi
	movq	_NICPM_IOMUX_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bgmac_adjust_link              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NICPM_PADRING_CFG_INIT_VAL,4,2 ## @NICPM_PADRING_CFG_INIT_VAL
	.comm	_NICPM_PADRING_CFG,8,3          ## @NICPM_PADRING_CFG
	.comm	_NICPM_IOMUX_CTRL_INIT_VAL,4,2  ## @NICPM_IOMUX_CTRL_INIT_VAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported speed. Defaulting to 1000Mb\n"

	.comm	_NICPM_IOMUX_CTRL_SPD_1000M,4,2 ## @NICPM_IOMUX_CTRL_SPD_1000M
	.comm	_NICPM_IOMUX_CTRL_SPD_SHIFT,4,2 ## @NICPM_IOMUX_CTRL_SPD_SHIFT
	.comm	_NICPM_IOMUX_CTRL_SPD_100M,4,2  ## @NICPM_IOMUX_CTRL_SPD_100M
	.comm	_NICPM_IOMUX_CTRL_SPD_10M,4,2   ## @NICPM_IOMUX_CTRL_SPD_10M
	.comm	_NICPM_IOMUX_CTRL,8,3           ## @NICPM_IOMUX_CTRL
	.no_dead_strip	_bgmac_nicpm_speed_set
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.bgmac_nicpm_speed_set
l_switch.table.bgmac_nicpm_speed_set:
	.quad	_NICPM_IOMUX_CTRL_SPD_1000M
	.quad	_NICPM_IOMUX_CTRL_SPD_100M
	.quad	_NICPM_IOMUX_CTRL_SPD_10M

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmac_nicpm_speed_set
_bgmac_nicpm_speed_set:                 ; @bgmac_nicpm_speed_set
	.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	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _NICPM_PADRING_CFG_INIT_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NICPM_PADRING_CFG_INIT_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _NICPM_PADRING_CFG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NICPM_PADRING_CFG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh6:
	adrp	x8, _NICPM_IOMUX_CTRL_INIT_VAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NICPM_IOMUX_CTRL_INIT_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, l_switch.table.bgmac_nicpm_speed_set@PAGE
Lloh10:
	add	x9, x9, l_switch.table.bgmac_nicpm_speed_set@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_3:
	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_4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh13:
	adrp	x8, _NICPM_IOMUX_CTRL_SPD_1000M@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NICPM_IOMUX_CTRL_SPD_1000M@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _NICPM_IOMUX_CTRL_SPD_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NICPM_IOMUX_CTRL_SPD_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w0, w8, w21
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _NICPM_IOMUX_CTRL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NICPM_IOMUX_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19]
	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
	b	_bgmac_adjust_link
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NICPM_PADRING_CFG_INIT_VAL,4,2 ; @NICPM_PADRING_CFG_INIT_VAL
	.comm	_NICPM_PADRING_CFG,8,3          ; @NICPM_PADRING_CFG
	.comm	_NICPM_IOMUX_CTRL_INIT_VAL,4,2  ; @NICPM_IOMUX_CTRL_INIT_VAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported speed. Defaulting to 1000Mb\n"

	.comm	_NICPM_IOMUX_CTRL_SPD_1000M,4,2 ; @NICPM_IOMUX_CTRL_SPD_1000M
	.comm	_NICPM_IOMUX_CTRL_SPD_SHIFT,4,2 ; @NICPM_IOMUX_CTRL_SPD_SHIFT
	.comm	_NICPM_IOMUX_CTRL_SPD_100M,4,2  ; @NICPM_IOMUX_CTRL_SPD_100M
	.comm	_NICPM_IOMUX_CTRL_SPD_10M,4,2   ; @NICPM_IOMUX_CTRL_SPD_10M
	.comm	_NICPM_IOMUX_CTRL,8,3           ; @NICPM_IOMUX_CTRL
	.no_dead_strip	_bgmac_nicpm_speed_set
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.bgmac_nicpm_speed_set
l_switch.table.bgmac_nicpm_speed_set:
	.quad	_NICPM_IOMUX_CTRL_SPD_1000M
	.quad	_NICPM_IOMUX_CTRL_SPD_100M
	.quad	_NICPM_IOMUX_CTRL_SPD_10M

.subsections_via_symbols
