	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_bw_mapping
_rtl8821ae_bw_mapping:                  ## @rtl8821ae_bw_mapping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %r8
	movq	(%r14), %r9
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	(%rbx), %rcx
	movq	_HT_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rdx
	movl	$2, %eax
	cmpq	%rcx, %rdx
	je	LBB0_5
## %bb.2:
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	sete	%al
	jmp	LBB0_5
LBB0_3:
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	cmpq	%rcx, %rax
	sete	%cl
	cmpq	%rdx, %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_SEND,4,2                  ## @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8821ae_bw_mapping, current_chan_bw %d, packet_bw %d\n"

	.comm	_HT_CHANNEL_WIDTH_80,8,3        ## @HT_CHANNEL_WIDTH_80
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ## @HT_CHANNEL_WIDTH_20_40
	.no_dead_strip	_rtl8821ae_bw_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_bw_mapping
_rtl8821ae_bw_mapping:                  ; @rtl8821ae_bw_mapping
	.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, x1
	bl	_rtl_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _COMP_SEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_SEND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x4, [x0]
	ldr	x5, [x19]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _HT_CHANNEL_WIDTH_80@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #2
	b	LBB0_8
LBB0_3:
Lloh11:
	adrp	x10, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.4:
	ldr	x10, [x19]
	cmp	x10, x8
	ccmp	x10, x9, #4, ne
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x9, x8
LBB0_6:
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_SEND,4,2                  ; @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8821ae_bw_mapping, current_chan_bw %d, packet_bw %d\n"

	.comm	_HT_CHANNEL_WIDTH_80,8,3        ; @HT_CHANNEL_WIDTH_80
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ; @HT_CHANNEL_WIDTH_20_40
	.no_dead_strip	_rtl8821ae_bw_mapping
.subsections_via_symbols
