	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_get_rate
_ipw2100_wx_get_rate:                   ## @ipw2100_wx_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_libipw_priv
	movq	%rax, %rbx
	movl	$4, -28(%rbp)
	movl	(%rax), %eax
	movq	_STATUS_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_3:
	movl	$0, (%r15)
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_STATUS_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.6:
	movq	_IPW_ORD_CURRENT_TX_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_ipw2100_get_ordinal
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	jmp	LBB0_11
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_TX_RATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-32(%rbp), %eax
	addl	$-128, %eax
	xorl	%ebx, %ebx
	movl	$0, %esi
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.9:
	cltq
	leaq	L_switch.table.ipw2100_wx_get_rate(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
LBB0_10:
	movl	%esi, (%r15)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_ENABLED,4,2             ## @STATUS_ENABLED
	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_STATUS_INITIALIZED,4,2         ## @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IPW_ORD_CURRENT_TX_RATE,4,2    ## @IPW_ORD_CURRENT_TX_RATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed querying ordinals.\n"

	.comm	_TX_RATE_MASK,4,2               ## @TX_RATE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"GET Rate -> %d\n"

	.no_dead_strip	_ipw2100_wx_get_rate
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ipw2100_wx_get_rate
L_switch.table.ipw2100_wx_get_rate:
	.long	5500000                         ## 0x53ec60
	.long	2000000                         ## 0x1e8480
	.long	1000000                         ## 0xf4240
	.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 ipw2100_wx_get_rate
_ipw2100_wx_get_rate:                   ; @ipw2100_wx_get_rate
	.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	x20, x2
	bl	_libipw_priv
	mov	w8, #4
	str	w8, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _STATUS_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
	mov	w21, #0
	str	wzr, [x20]
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
Lloh6:
	adrp	x9, _STATUS_ASSOCIATED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _STATUS_INITIALIZED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STATUS_INITIALIZED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _IPW_ORD_CURRENT_TX_RATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPW_ORD_CURRENT_TX_RATE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	bl	_ipw2100_get_ordinal
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	b	LBB0_13
LBB0_8:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_9:
	ldr	w8, [sp, #12]
Lloh20:
	adrp	x9, _TX_RATE_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TX_RATE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.10:
Lloh23:
	adrp	x9, l_switch.table.ipw2100_wx_get_rate@PAGE
Lloh24:
	add	x9, x9, l_switch.table.ipw2100_wx_get_rate@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_12
LBB0_11:
	mov	w8, #0
LBB0_12:
	str	w8, [x20]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w21, #0
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_ENABLED,4,2             ; @STATUS_ENABLED
	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_STATUS_INITIALIZED,4,2         ; @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IPW_ORD_CURRENT_TX_RATE,4,2    ; @IPW_ORD_CURRENT_TX_RATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed querying ordinals.\n"

	.comm	_TX_RATE_MASK,4,2               ; @TX_RATE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"GET Rate -> %d\n"

	.no_dead_strip	_ipw2100_wx_get_rate
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ipw2100_wx_get_rate
l_switch.table.ipw2100_wx_get_rate:
	.long	5500000                         ; 0x53ec60
	.long	2000000                         ; 0x1e8480
	.long	1000000                         ; 0xf4240
	.long	11000000                        ; 0xa7d8c0

.subsections_via_symbols
