	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_query_bandwidth_mode
__rtl_query_bandwidth_mode:             ## @_rtl_query_bandwidth_mode
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movl	$0, (%r14)
	testq	%r12, %r12
	je	LBB0_21
## %bb.1:
	movq	(%rax), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rsi
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rdx
	cmpq	%rdi, %rcx
	je	LBB0_4
## %bb.2:
	cmpq	(%rsi), %rcx
	je	LBB0_4
## %bb.3:
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.6:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jne	LBB0_9
## %bb.7:
	cmpl	$0, 12(%rax)
	je	LBB0_21
## %bb.8:
	cmpl	$0, 8(%r12)
	jne	LBB0_9
	jmp	LBB0_21
LBB0_4:
	cmpl	$0, 8(%r12)
	je	LBB0_21
## %bb.5:
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	testl	%ebx, 4(%r12)
	je	LBB0_21
LBB0_9:
	cmpq	$0, 24(%r14)
	jne	LBB0_21
## %bb.10:
	cmpq	$0, 16(%r14)
	jne	LBB0_21
## %bb.11:
	movq	8(%r14), %r8
	movq	(%r15), %r10
	movq	(%r10), %r9
	movq	_RTL_RC_OFDM_RATE54M@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	cmpq	(%r9,%rbx,8), %r8
	jle	LBB0_21
## %bb.12:
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movl	%ebx, (%r14)
	movq	_RTL_SPEC_SUPPORT_VHT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	testl	%ebx, 8(%r10)
	je	LBB0_21
## %bb.13:
	cmpq	%rdi, %rcx
	je	LBB0_18
## %bb.14:
	cmpq	(%rsi), %rcx
	je	LBB0_18
## %bb.15:
	cmpq	(%rdx), %rcx
	je	LBB0_18
## %bb.16:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_19
## %bb.17:
	cmpl	$0, 8(%rax)
	je	LBB0_21
LBB0_18:
	cmpl	$0, (%r12)
	je	LBB0_21
LBB0_19:
	movq	_RTL_RC_HT_RATEMCS15@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r9,%rax,8), %r8
	jle	LBB0_21
## %bb.20:
	movq	_HT_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_RTL_RC_OFDM_RATE54M,8,3        ## @RTL_RC_OFDM_RATE54M
	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ## @HT_CHANNEL_WIDTH_20_40
	.comm	_RTL_SPEC_SUPPORT_VHT,4,2       ## @RTL_SPEC_SUPPORT_VHT
	.comm	_RTL_RC_HT_RATEMCS15,8,3        ## @RTL_RC_HT_RATEMCS15
	.comm	_HT_CHANNEL_WIDTH_80,4,2        ## @HT_CHANNEL_WIDTH_80
	.no_dead_strip	__rtl_query_bandwidth_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_query_bandwidth_mode
__rtl_query_bandwidth_mode:             ; @_rtl_query_bandwidth_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_mac
	str	wzr, [x19]
	cbz	x20, LBB0_19
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	ldr	x12, [x10]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
	ldr	x13, [x9]
	cmp	x8, x11
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	w12, [x20, #8]
	cbz	w12, LBB0_19
; %bb.3:
	ldr	w12, [x20, #4]
Lloh7:
	adrp	x13, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh8:
	ldr	x13, [x13, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh9:
	ldr	w13, [x13]
	tst	w13, w12
	b.ne	LBB0_7
	b	LBB0_19
LBB0_4:
Lloh10:
	adrp	x12, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh11:
	ldr	x12, [x12, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh12:
	ldr	x12, [x12]
	cmp	x8, x12
	b.ne	LBB0_7
; %bb.5:
	ldr	w12, [x0, #12]
	cbz	w12, LBB0_19
; %bb.6:
	ldr	w12, [x20, #8]
	cbz	w12, LBB0_19
LBB0_7:
	ldr	x12, [x19, #24]
	cbnz	x12, LBB0_19
; %bb.8:
	ldr	x12, [x19, #16]
	cbnz	x12, LBB0_19
; %bb.9:
	ldr	x12, [x19, #8]
	ldr	x14, [x21]
	ldr	x13, [x14]
Lloh13:
	adrp	x15, _RTL_RC_OFDM_RATE54M@GOTPAGE
Lloh14:
	ldr	x15, [x15, _RTL_RC_OFDM_RATE54M@GOTPAGEOFF]
Lloh15:
	ldr	x15, [x15]
	ldr	x15, [x13, x15, lsl #3]
	cmp	x12, x15
	b.le	LBB0_19
; %bb.10:
Lloh16:
	adrp	x15, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh17:
	ldr	x15, [x15, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh18:
	ldr	w15, [x15]
	str	w15, [x19]
	ldr	w14, [x14, #8]
Lloh19:
	adrp	x15, _RTL_SPEC_SUPPORT_VHT@GOTPAGE
Lloh20:
	ldr	x15, [x15, _RTL_SPEC_SUPPORT_VHT@GOTPAGEOFF]
Lloh21:
	ldr	w15, [x15]
	tst	w15, w14
	b.eq	LBB0_19
; %bb.11:
	cmp	x8, x11
	b.eq	LBB0_16
; %bb.12:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_16
; %bb.13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.14:
Lloh22:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_19
LBB0_16:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
LBB0_17:
Lloh25:
	adrp	x8, _RTL_RC_HT_RATEMCS15@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RTL_RC_HT_RATEMCS15@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x8, [x13, x8, lsl #3]
	cmp	x12, x8
	b.le	LBB0_19
; %bb.18:
Lloh28:
	adrp	x8, _HT_CHANNEL_WIDTH_80@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_RTL_RC_OFDM_RATE54M,8,3        ; @RTL_RC_OFDM_RATE54M
	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ; @HT_CHANNEL_WIDTH_20_40
	.comm	_RTL_SPEC_SUPPORT_VHT,4,2       ; @RTL_SPEC_SUPPORT_VHT
	.comm	_RTL_RC_HT_RATEMCS15,8,3        ; @RTL_RC_HT_RATEMCS15
	.comm	_HT_CHANNEL_WIDTH_80,4,2        ; @HT_CHANNEL_WIDTH_80
	.no_dead_strip	__rtl_query_bandwidth_mode
.subsections_via_symbols
