	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_fw2x_update_link_status
_aq_fw2x_update_link_status:            ## @aq_fw2x_update_link_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_HW_ATL_FW2X_MPI_STATE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_aq_hw_read_reg
	movq	_FW2X_RATE_100M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_FW2X_RATE_1G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r9d, %edx
	orl	%r8d, %edx
	movq	_FW2X_RATE_2G5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_FW2X_RATE_5G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%edi, %esi
	orl	%ecx, %esi
	orl	%edx, %esi
	movq	_FW2X_RATE_10G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, %esi
	andl	%eax, %esi
	je	LBB0_3
## %bb.1:
	testl	%eax, %edx
	je	LBB0_4
LBB0_12:
	movl	$10000, (%rbx)                  ## imm = 0x2710
	jmp	LBB0_13
LBB0_3:
	movl	$0, (%rbx)
	jmp	LBB0_13
LBB0_4:
	testl	%ecx, %esi
	je	LBB0_6
## %bb.5:
	movl	$5000, (%rbx)                   ## imm = 0x1388
	jmp	LBB0_13
LBB0_6:
	testl	%edi, %esi
	je	LBB0_8
## %bb.7:
	movl	$2500, (%rbx)                   ## imm = 0x9C4
	jmp	LBB0_13
LBB0_8:
	testl	%r9d, %esi
	je	LBB0_10
## %bb.9:
	movl	$1000, (%rbx)                   ## imm = 0x3E8
	jmp	LBB0_13
LBB0_10:
	testl	%r8d, %esi
	je	LBB0_12
## %bb.11:
	movl	$100, (%rbx)
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_FW2X_MPI_STATE_ADDR,4,2 ## @HW_ATL_FW2X_MPI_STATE_ADDR
	.comm	_FW2X_RATE_100M,4,2             ## @FW2X_RATE_100M
	.comm	_FW2X_RATE_1G,4,2               ## @FW2X_RATE_1G
	.comm	_FW2X_RATE_2G5,4,2              ## @FW2X_RATE_2G5
	.comm	_FW2X_RATE_5G,4,2               ## @FW2X_RATE_5G
	.comm	_FW2X_RATE_10G,4,2              ## @FW2X_RATE_10G
	.no_dead_strip	_aq_fw2x_update_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_fw2x_update_link_status
_aq_fw2x_update_link_status:            ; @aq_fw2x_update_link_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _HW_ATL_FW2X_MPI_STATE_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_ATL_FW2X_MPI_STATE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_aq_hw_read_reg
Lloh3:
	adrp	x8, _FW2X_RATE_100M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW2X_RATE_100M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FW2X_RATE_1G@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW2X_RATE_1G@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FW2X_RATE_2G5@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FW2X_RATE_2G5@GOTPAGEOFF]
	orr	w11, w9, w8
Lloh11:
	ldr	w10, [x10]
	orr	w11, w11, w10
Lloh12:
	adrp	x12, _FW2X_RATE_5G@GOTPAGE
Lloh13:
	ldr	x12, [x12, _FW2X_RATE_5G@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh15:
	adrp	x13, _FW2X_RATE_10G@GOTPAGE
Lloh16:
	ldr	x13, [x13, _FW2X_RATE_10G@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	orr	w11, w11, w13
	ands	w11, w11, w0
	b.eq	LBB0_3
; %bb.1:
	tst	w13, w0
	b.eq	LBB0_4
LBB0_2:
	mov	w8, #10000
	b	LBB0_12
LBB0_3:
	str	wzr, [x19]
	b	LBB0_13
LBB0_4:
	tst	w11, w12
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #5000
	b	LBB0_12
LBB0_6:
	tst	w11, w10
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #2500
	b	LBB0_12
LBB0_8:
	tst	w11, w9
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #1000
	b	LBB0_12
LBB0_10:
	tst	w11, w8
	b.eq	LBB0_2
; %bb.11:
	mov	w8, #100
LBB0_12:
	str	w8, [x19]
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_FW2X_MPI_STATE_ADDR,4,2 ; @HW_ATL_FW2X_MPI_STATE_ADDR
	.comm	_FW2X_RATE_100M,4,2             ; @FW2X_RATE_100M
	.comm	_FW2X_RATE_1G,4,2               ; @FW2X_RATE_1G
	.comm	_FW2X_RATE_2G5,4,2              ; @FW2X_RATE_2G5
	.comm	_FW2X_RATE_5G,4,2               ; @FW2X_RATE_5G
	.comm	_FW2X_RATE_10G,4,2              ; @FW2X_RATE_10G
	.no_dead_strip	_aq_fw2x_update_link_status
.subsections_via_symbols
