	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_get_current_rate
_ipw_get_current_rate:                  ## @ipw_get_current_rate
	.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
	movl	$4, -12(%rbp)
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	8(%rdi), %rax
	movq	_IPW_REAL_RATE_RX_PACKET_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.2:
	movq	_IPW_ORD_STAT_TX_CURR_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_ipw_get_ordinal
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_INFO
	jmp	LBB0_7
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ipw_get_max_rate               ## TAILCALL
LBB0_5:
	movl	-16(%rbp), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	l_switch.table.ipw_get_current_rate(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_IPW_REAL_RATE_RX_PACKET_THRESHOLD,8,3 ## @IPW_REAL_RATE_RX_PACKET_THRESHOLD
	.comm	_IPW_ORD_STAT_TX_CURR_RATE,4,2  ## @IPW_ORD_STAT_TX_CURR_RATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed querying ordinals.\n"

	.no_dead_strip	_ipw_get_current_rate
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ipw_get_current_rate
l_switch.table.ipw_get_current_rate:
	.long	9000000                         ## 0x895440
	.long	6000000                         ## 0x5b8d80
	.long	5500000                         ## 0x53ec60
	.long	54000000                        ## 0x337f980
	.long	48000000                        ## 0x2dc6c00
	.long	36000000                        ## 0x2255100
	.long	2000000                         ## 0x1e8480
	.long	24000000                        ## 0x16e3600
	.long	1000000                         ## 0xf4240
	.long	18000000                        ## 0x112a880
	.long	12000000                        ## 0xb71b00
	.long	11000000                        ## 0xa7d8c0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_get_current_rate
_ipw_get_current_rate:                  ; @ipw_get_current_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	w8, #4
	str	w8, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _STATUS_ASSOCIATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _IPW_REAL_RATE_RX_PACKET_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPW_REAL_RATE_RX_PACKET_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _IPW_ORD_STAT_TX_CURR_RATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPW_ORD_STAT_TX_CURR_RATE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x2, x29, #4
	add	x3, sp, #8
	bl	_ipw_get_ordinal
	cbz	w0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_INFO
	b	LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_ipw_get_max_rate
LBB0_5:
	ldur	w8, [x29, #-4]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_7
; %bb.6:
Lloh11:
	adrp	x9, l_switch.table.ipw_get_current_rate@PAGE
Lloh12:
	add	x9, x9, l_switch.table.ipw_get_current_rate@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_IPW_REAL_RATE_RX_PACKET_THRESHOLD,8,3 ; @IPW_REAL_RATE_RX_PACKET_THRESHOLD
	.comm	_IPW_ORD_STAT_TX_CURR_RATE,4,2  ; @IPW_ORD_STAT_TX_CURR_RATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed querying ordinals.\n"

	.no_dead_strip	_ipw_get_current_rate
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ipw_get_current_rate
l_switch.table.ipw_get_current_rate:
	.long	9000000                         ; 0x895440
	.long	6000000                         ; 0x5b8d80
	.long	5500000                         ; 0x53ec60
	.long	54000000                        ; 0x337f980
	.long	48000000                        ; 0x2dc6c00
	.long	36000000                        ; 0x2255100
	.long	2000000                         ; 0x1e8480
	.long	24000000                        ; 0x16e3600
	.long	1000000                         ; 0xf4240
	.long	18000000                        ; 0x112a880
	.long	12000000                        ; 0xb71b00
	.long	11000000                        ; 0xa7d8c0

.subsections_via_symbols
