	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbmac_set_speed
_sbmac_set_speed:                       ## @sbmac_set_speed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, (%rdi)
	movq	8(%rdi), %rax
	movq	_sbmac_state_on@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	callq	___raw_readq
	movl	%eax, %r14d
	movl	20(%r12), %edi
	callq	___raw_readq
	movq	_M_MAC_BURST_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_M_MAC_SPEED_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_M_MAC_IFG_RX@GOTPCREL(%rip), %rsi
	movq	_M_MAC_IFG_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	orl	%edi, %edx
	movq	_M_MAC_IFG_THRSH@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_M_MAC_SLOT_SIZE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.3:
	cmpl	$130, %ebx
	jne	LBB0_9
## %bb.4:
	movq	_V_MAC_IFG_RX_10@GOTPCREL(%rip), %rdi
	movq	_V_MAC_IFG_TX_10@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdi), %esi
	movq	_K_MAC_IFG_THRSH_10@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movq	_V_MAC_SLOT_SIZE_10@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movq	_V_MAC_SPEED_SEL_10MBPS@GOTPCREL(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	_V_MAC_IFG_RX_1000@GOTPCREL(%rip), %rbx
	movq	_V_MAC_IFG_TX_1000@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rbx), %esi
	movq	_V_MAC_IFG_THRSH_1000@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movq	_V_MAC_SLOT_SIZE_1000@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movq	_V_MAC_SPEED_SEL_1000MBPS@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edi
	jmp	LBB0_8
LBB0_6:
	movq	_V_MAC_IFG_RX_100@GOTPCREL(%rip), %rdi
	movq	_V_MAC_IFG_TX_100@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdi), %esi
	movq	_V_MAC_IFG_THRSH_100@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movq	_V_MAC_SLOT_SIZE_100@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movq	_V_MAC_SPEED_SEL_100MBPS@GOTPCREL(%rip), %rdi
LBB0_7:
	movl	(%rdi), %edi
LBB0_8:
	notl	%edx
	andl	%edx, %r14d
	orl	%edi, %r14d
	notl	%ecx
	andl	%ecx, %eax
	orl	%esi, %eax
	movl	20(%r12), %esi
	movl	%eax, %edi
	callq	___raw_writeq
	movl	16(%r12), %esi
	movl	%r14d, %edi
	callq	___raw_writeq
	movl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbmac_state_on,8,3             ## @sbmac_state_on
	.comm	_M_MAC_BURST_EN,4,2             ## @M_MAC_BURST_EN
	.comm	_M_MAC_SPEED_SEL,4,2            ## @M_MAC_SPEED_SEL
	.comm	_M_MAC_IFG_RX,4,2               ## @M_MAC_IFG_RX
	.comm	_M_MAC_IFG_TX,4,2               ## @M_MAC_IFG_TX
	.comm	_M_MAC_IFG_THRSH,4,2            ## @M_MAC_IFG_THRSH
	.comm	_M_MAC_SLOT_SIZE,4,2            ## @M_MAC_SLOT_SIZE
	.comm	_V_MAC_IFG_RX_10,4,2            ## @V_MAC_IFG_RX_10
	.comm	_V_MAC_IFG_TX_10,4,2            ## @V_MAC_IFG_TX_10
	.comm	_K_MAC_IFG_THRSH_10,4,2         ## @K_MAC_IFG_THRSH_10
	.comm	_V_MAC_SLOT_SIZE_10,4,2         ## @V_MAC_SLOT_SIZE_10
	.comm	_V_MAC_SPEED_SEL_10MBPS,4,2     ## @V_MAC_SPEED_SEL_10MBPS
	.comm	_V_MAC_IFG_RX_100,4,2           ## @V_MAC_IFG_RX_100
	.comm	_V_MAC_IFG_TX_100,4,2           ## @V_MAC_IFG_TX_100
	.comm	_V_MAC_IFG_THRSH_100,4,2        ## @V_MAC_IFG_THRSH_100
	.comm	_V_MAC_SLOT_SIZE_100,4,2        ## @V_MAC_SLOT_SIZE_100
	.comm	_V_MAC_SPEED_SEL_100MBPS,4,2    ## @V_MAC_SPEED_SEL_100MBPS
	.comm	_V_MAC_IFG_RX_1000,4,2          ## @V_MAC_IFG_RX_1000
	.comm	_V_MAC_IFG_TX_1000,4,2          ## @V_MAC_IFG_TX_1000
	.comm	_V_MAC_IFG_THRSH_1000,4,2       ## @V_MAC_IFG_THRSH_1000
	.comm	_V_MAC_SLOT_SIZE_1000,4,2       ## @V_MAC_SLOT_SIZE_1000
	.comm	_V_MAC_SPEED_SEL_1000MBPS,4,2   ## @V_MAC_SPEED_SEL_1000MBPS
	.no_dead_strip	_sbmac_set_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbmac_set_speed
_sbmac_set_speed:                       ; @sbmac_set_speed
	.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
	str	w1, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _sbmac_state_on@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sbmac_state_on@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	___raw_readq
	mov	x20, x0
	ldr	w0, [x19, #20]
	bl	___raw_readq
Lloh3:
	adrp	x8, _M_MAC_BURST_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_MAC_BURST_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _M_MAC_SPEED_SEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_MAC_SPEED_SEL@GOTPAGEOFF]
Lloh8:
	adrp	x11, _M_MAC_IFG_RX@GOTPAGE
Lloh9:
	ldr	x11, [x11, _M_MAC_IFG_RX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x9]
Lloh11:
	ldr	w9, [x11]
Lloh12:
	adrp	x11, _M_MAC_IFG_TX@GOTPAGE
Lloh13:
	ldr	x11, [x11, _M_MAC_IFG_TX@GOTPAGEOFF]
Lloh14:
	adrp	x13, _M_MAC_IFG_THRSH@GOTPAGE
Lloh15:
	ldr	x13, [x13, _M_MAC_IFG_THRSH@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x11]
Lloh17:
	ldr	w11, [x13]
Lloh18:
	adrp	x13, _M_MAC_SLOT_SIZE@GOTPAGE
Lloh19:
	ldr	x13, [x13, _M_MAC_SLOT_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #130
	b.ne	LBB0_5
; %bb.4:
Lloh21:
	adrp	x14, _V_MAC_IFG_RX_10@GOTPAGE
Lloh22:
	ldr	x14, [x14, _V_MAC_IFG_RX_10@GOTPAGEOFF]
Lloh23:
	ldr	w14, [x14]
Lloh24:
	adrp	x15, _V_MAC_IFG_TX_10@GOTPAGE
Lloh25:
	ldr	x15, [x15, _V_MAC_IFG_TX_10@GOTPAGEOFF]
Lloh26:
	ldr	w15, [x15]
	orr	w14, w15, w14
Lloh27:
	adrp	x15, _K_MAC_IFG_THRSH_10@GOTPAGE
Lloh28:
	ldr	x15, [x15, _K_MAC_IFG_THRSH_10@GOTPAGEOFF]
Lloh29:
	ldr	w15, [x15]
Lloh30:
	adrp	x16, _V_MAC_SLOT_SIZE_10@GOTPAGE
Lloh31:
	ldr	x16, [x16, _V_MAC_SLOT_SIZE_10@GOTPAGEOFF]
	orr	w14, w14, w15
Lloh32:
	ldr	w15, [x16]
	orr	w14, w14, w15
Lloh33:
	adrp	x15, _V_MAC_SPEED_SEL_10MBPS@GOTPAGE
Lloh34:
	ldr	x15, [x15, _V_MAC_SPEED_SEL_10MBPS@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh35:
	adrp	x14, _V_MAC_IFG_RX_1000@GOTPAGE
Lloh36:
	ldr	x14, [x14, _V_MAC_IFG_RX_1000@GOTPAGEOFF]
Lloh37:
	ldr	w14, [x14]
Lloh38:
	adrp	x15, _V_MAC_IFG_TX_1000@GOTPAGE
Lloh39:
	ldr	x15, [x15, _V_MAC_IFG_TX_1000@GOTPAGEOFF]
Lloh40:
	ldr	w15, [x15]
	orr	w14, w15, w14
Lloh41:
	adrp	x15, _V_MAC_IFG_THRSH_1000@GOTPAGE
Lloh42:
	ldr	x15, [x15, _V_MAC_IFG_THRSH_1000@GOTPAGEOFF]
Lloh43:
	ldr	w15, [x15]
	orr	w14, w14, w15
Lloh44:
	adrp	x15, _V_MAC_SLOT_SIZE_1000@GOTPAGE
Lloh45:
	ldr	x15, [x15, _V_MAC_SLOT_SIZE_1000@GOTPAGEOFF]
Lloh46:
	ldr	w15, [x15]
	orr	w14, w14, w15
Lloh47:
	adrp	x15, _V_MAC_SPEED_SEL_1000MBPS@GOTPAGE
Lloh48:
	ldr	x15, [x15, _V_MAC_SPEED_SEL_1000MBPS@GOTPAGEOFF]
Lloh49:
	ldr	w15, [x15]
	orr	w15, w15, w8
	b	LBB0_9
LBB0_7:
Lloh50:
	adrp	x14, _V_MAC_IFG_RX_100@GOTPAGE
Lloh51:
	ldr	x14, [x14, _V_MAC_IFG_RX_100@GOTPAGEOFF]
Lloh52:
	ldr	w14, [x14]
Lloh53:
	adrp	x15, _V_MAC_IFG_TX_100@GOTPAGE
Lloh54:
	ldr	x15, [x15, _V_MAC_IFG_TX_100@GOTPAGEOFF]
Lloh55:
	ldr	w15, [x15]
	orr	w14, w15, w14
Lloh56:
	adrp	x15, _V_MAC_IFG_THRSH_100@GOTPAGE
Lloh57:
	ldr	x15, [x15, _V_MAC_IFG_THRSH_100@GOTPAGEOFF]
Lloh58:
	ldr	w15, [x15]
Lloh59:
	adrp	x16, _V_MAC_SLOT_SIZE_100@GOTPAGE
Lloh60:
	ldr	x16, [x16, _V_MAC_SLOT_SIZE_100@GOTPAGEOFF]
	orr	w14, w14, w15
Lloh61:
	ldr	w15, [x16]
	orr	w14, w14, w15
Lloh62:
	adrp	x15, _V_MAC_SPEED_SEL_100MBPS@GOTPAGE
Lloh63:
	ldr	x15, [x15, _V_MAC_SPEED_SEL_100MBPS@GOTPAGEOFF]
LBB0_8:
	ldr	w15, [x15]
LBB0_9:
	orr	w8, w10, w8
	bic	w8, w20, w8
	orr	w9, w12, w9
	orr	w9, w9, w11
	orr	w9, w9, w13
	bic	w9, w0, w9
	orr	w0, w14, w9
	orr	w20, w15, w8
	ldr	w1, [x19, #20]
	bl	___raw_writeq
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	___raw_writeq
	mov	w0, #1
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_sbmac_state_on,8,3             ; @sbmac_state_on
	.comm	_M_MAC_BURST_EN,4,2             ; @M_MAC_BURST_EN
	.comm	_M_MAC_SPEED_SEL,4,2            ; @M_MAC_SPEED_SEL
	.comm	_M_MAC_IFG_RX,4,2               ; @M_MAC_IFG_RX
	.comm	_M_MAC_IFG_TX,4,2               ; @M_MAC_IFG_TX
	.comm	_M_MAC_IFG_THRSH,4,2            ; @M_MAC_IFG_THRSH
	.comm	_M_MAC_SLOT_SIZE,4,2            ; @M_MAC_SLOT_SIZE
	.comm	_V_MAC_IFG_RX_10,4,2            ; @V_MAC_IFG_RX_10
	.comm	_V_MAC_IFG_TX_10,4,2            ; @V_MAC_IFG_TX_10
	.comm	_K_MAC_IFG_THRSH_10,4,2         ; @K_MAC_IFG_THRSH_10
	.comm	_V_MAC_SLOT_SIZE_10,4,2         ; @V_MAC_SLOT_SIZE_10
	.comm	_V_MAC_SPEED_SEL_10MBPS,4,2     ; @V_MAC_SPEED_SEL_10MBPS
	.comm	_V_MAC_IFG_RX_100,4,2           ; @V_MAC_IFG_RX_100
	.comm	_V_MAC_IFG_TX_100,4,2           ; @V_MAC_IFG_TX_100
	.comm	_V_MAC_IFG_THRSH_100,4,2        ; @V_MAC_IFG_THRSH_100
	.comm	_V_MAC_SLOT_SIZE_100,4,2        ; @V_MAC_SLOT_SIZE_100
	.comm	_V_MAC_SPEED_SEL_100MBPS,4,2    ; @V_MAC_SPEED_SEL_100MBPS
	.comm	_V_MAC_IFG_RX_1000,4,2          ; @V_MAC_IFG_RX_1000
	.comm	_V_MAC_IFG_TX_1000,4,2          ; @V_MAC_IFG_TX_1000
	.comm	_V_MAC_IFG_THRSH_1000,4,2       ; @V_MAC_IFG_THRSH_1000
	.comm	_V_MAC_SLOT_SIZE_1000,4,2       ; @V_MAC_SLOT_SIZE_1000
	.comm	_V_MAC_SPEED_SEL_1000MBPS,4,2   ; @V_MAC_SPEED_SEL_1000MBPS
	.no_dead_strip	_sbmac_set_speed
.subsections_via_symbols
