	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_phy_set_reg_bw
__rtl8821ae_phy_set_reg_bw:             ## @_rtl8821ae_phy_set_reg_bw
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_REG_TRXPTCL_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_rtl_read_word
	movl	%eax, %r15d
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_7
## %bb.3:
	movl	(%r12), %esi
	andl	$65151, %r15d                   ## imm = 0xFE7F
	jmp	LBB0_4
LBB0_6:
	movl	$8, %edi
	callq	_BIT
	orl	%eax, %r15d
	movl	(%r12), %esi
	andl	$65407, %r15d                   ## imm = 0xFF7F
	jmp	LBB0_4
LBB0_5:
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %r15d
	movl	(%r12), %esi
	andl	$65279, %r15d                   ## imm = 0xFEFF
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_write_word                 ## TAILCALL
LBB0_7:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TRXPTCL_CTL,4,2            ## @REG_TRXPTCL_CTL
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown Bandwidth: 0x%x\n"

	.no_dead_strip	__rtl8821ae_phy_set_reg_bw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_phy_set_reg_bw
__rtl8821ae_phy_set_reg_bw:             ; @_rtl8821ae_phy_set_reg_bw
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _REG_TRXPTCL_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_TRXPTCL_CTL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_rtl_read_word
	mov	x21, x0
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [x22]
	mov	w8, #65151
	and	w2, w21, w8
	b	LBB0_7
LBB0_4:
	mov	w0, #8
	bl	_BIT
	orr	w8, w0, w21
	ldr	w1, [x22]
	mov	w9, #65407
	b	LBB0_6
LBB0_5:
	mov	w0, #7
	bl	_BIT
	orr	w8, w0, w21
	ldr	w1, [x22]
	mov	w9, #65279
LBB0_6:
	and	w2, w8, w9
LBB0_7:
	mov	x0, x19
	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
	b	_rtl_write_word
LBB0_8:
Lloh2:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x4, x20
	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
	b	_RT_TRACE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TRXPTCL_CTL,4,2            ; @REG_TRXPTCL_CTL
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown Bandwidth: 0x%x\n"

	.no_dead_strip	__rtl8821ae_phy_set_reg_bw
.subsections_via_symbols
