	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tm_attr_show
_tm_attr_show:                          ## @tm_attr_show
	.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	%edx, %r12d
	movq	%rsi, %r14
	callq	_to_net_dev
	movl	%eax, %edi
	callq	_netdev_priv
	movq	(%rax), %r15
	movq	_A_TP_TX_MOD_Q1_Q0_RATE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	_A_TP_TM_PIO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_t3_write_reg
	movq	_A_TP_TM_PIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, %ecx
	shrl	$16, %ecx
	testb	$1, %r12b
	cmovel	%eax, %ecx
	movl	%ecx, %ebx
	andl	$255, %ebx
	je	LBB0_1
## %bb.2:
	movzbl	%ch, %ecx
	imull	$1000, (%r15), %eax             ## imm = 0x3E8
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	imull	%ecx, %eax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	shrq	$35, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_sprintf
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	movabsq	$7234307546238118244, %rax      ## imm = 0x64656C6261736964
	movq	%rax, (%r14)
	movw	$10, 8(%r14)
	movl	$9, %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_TP_TX_MOD_Q1_Q0_RATE_LIMIT,4,2 ## @A_TP_TX_MOD_Q1_Q0_RATE_LIMIT
	.comm	_A_TP_TM_PIO_ADDR,4,2           ## @A_TP_TM_PIO_ADDR
	.comm	_A_TP_TM_PIO_DATA,4,2           ## @A_TP_TM_PIO_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"%u Kbps\n"

	.no_dead_strip	_tm_attr_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tm_attr_show
_tm_attr_show:                          ; @tm_attr_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	bl	_to_net_dev
	bl	_netdev_priv
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _A_TP_TX_MOD_Q1_Q0_RATE_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_TP_TX_MOD_Q1_Q0_RATE_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, #0
	cinc	w9, w21, lt
	sub	w22, w8, w9, asr #1
	bl	_rtnl_lock
Lloh3:
	adrp	x8, _A_TP_TM_PIO_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_TP_TM_PIO_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_t3_write_reg
Lloh6:
	adrp	x8, _A_TP_TM_PIO_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_TP_TM_PIO_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	lsr	w8, w0, #16
	tst	w21, #0x1
	csel	w9, w0, w8, eq
	ands	w8, w9, #0xff
	b.eq	LBB0_2
; %bb.1:
	ubfx	w9, w9, #8, #8
	ldr	w10, [x20]
	mov	w11, #1000
	mul	w10, w10, w11
	udiv	w8, w10, w8
	mul	w8, w8, w9
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #35
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x19, x0
	b	LBB0_3
LBB0_2:
	mov	w8, #10
	strh	w8, [x19, #8]
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w19, #9
LBB0_3:
	bl	_rtnl_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAddLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_A_TP_TX_MOD_Q1_Q0_RATE_LIMIT,4,2 ; @A_TP_TX_MOD_Q1_Q0_RATE_LIMIT
	.comm	_A_TP_TM_PIO_ADDR,4,2           ; @A_TP_TM_PIO_ADDR
	.comm	_A_TP_TM_PIO_DATA,4,2           ; @A_TP_TM_PIO_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"%u Kbps\n"

	.no_dead_strip	_tm_attr_show
.subsections_via_symbols
