	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wext_giwrate
_cfg80211_wext_giwrate:                 ## @cfg80211_wext_giwrate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movl	16(%rbx), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r15
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_wdev_lock
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_wdev_unlock
LBB0_5:
	leaq	_cfg80211_wext_giwrate.sinfo(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_rdev_get_station
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	_STATION_INFO_TX_BITRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, _cfg80211_wext_giwrate.sinfo(%rip)
	je	LBB0_1
## %bb.7:
	leaq	_cfg80211_wext_giwrate.sinfo+4(%rip), %rdi
	callq	_cfg80211_calculate_bitrate
	imull	$100000, %eax, %eax             ## imm = 0x186A0
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_wdev_unlock
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.9:
	negl	%r14d
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cfg80211_wext_giwrate.sinfo,8,2 ## @cfg80211_wext_giwrate.sinfo
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_STATION_INFO_TX_BITRATE,4,2    ## @STATION_INFO_TX_BITRATE
	.no_dead_strip	_cfg80211_wext_giwrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wext_giwrate
_cfg80211_wext_giwrate:                 ; @cfg80211_wext_giwrate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x0]
	ldr	w0, [x22, #16]
	bl	_wiphy_to_dev
	mov	x21, x0
Lloh3:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_wdev_lock
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x23
	bl	_memcpy
	mov	x0, x22
	bl	_wdev_unlock
LBB0_4:
Lloh10:
	adrp	x3, _cfg80211_wext_giwrate.sinfo@PAGE
Lloh11:
	add	x3, x3, _cfg80211_wext_giwrate.sinfo@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_rdev_get_station
	cbnz	w0, LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _cfg80211_wext_giwrate.sinfo@PAGE
Lloh13:
	ldr	w8, [x8, _cfg80211_wext_giwrate.sinfo@PAGEOFF]
Lloh14:
	adrp	x9, _STATION_INFO_TX_BITRATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _STATION_INFO_TX_BITRATE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, _cfg80211_wext_giwrate.sinfo@PAGE+4
Lloh18:
	add	x0, x0, _cfg80211_wext_giwrate.sinfo@PAGEOFF+4
	bl	_cfg80211_calculate_bitrate
	mov	x8, x0
	mov	w0, #0
	mov	w9, #34464
	movk	w9, #1, lsl #16
	mul	w8, w8, w9
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh25:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh27:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_wdev_unlock
	cbz	w24, LBB0_4
; %bb.11:
	neg	w0, w24
	b	LBB0_8
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cfg80211_wext_giwrate.sinfo,8,2 ; @cfg80211_wext_giwrate.sinfo
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_STATION_INFO_TX_BITRATE,4,2    ; @STATION_INFO_TX_BITRATE
	.no_dead_strip	_cfg80211_wext_giwrate
.subsections_via_symbols
