	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_set_bb_reg          ## -- Begin function rtl92s_phy_set_bb_reg
	.p2align	4, 0x90
_rtl92s_phy_set_bb_reg:                 ## @rtl92s_phy_set_bb_reg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_rtl_priv
	movq	%rax, %r12
	movq	_COMP_RF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_RT_TRACE
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_rtl_read_dword
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	__rtl92s_phy_calculate_bit_shift
	movl	%r15d, %edx
	notl	%edx
	andl	%r13d, %edx
	movq	_COMP_RF@GOTPCREL(%rip), %r13
	movl	%eax, %ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
LBB0_2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_rtl_write_dword
	movl	(%r13), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_RT_TRACE
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_RF,4,2                    ## @COMP_RF
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regaddr(%#x), bitmask(%#x), data(%#x)\n"

	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_set_bb_reg          ; -- Begin function rtl92s_phy_set_bb_reg
	.p2align	2
_rtl92s_phy_set_bb_reg:                 ; @rtl92s_phy_set_bb_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_rtl_priv
	mov	x22, x0
Lloh0:
	adrp	x24, _COMP_RF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _COMP_RF@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x25, _DBG_TRACE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DBG_TRACE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_RT_TRACE
Lloh6:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_rtl_read_dword
	mov	x23, x0
	mov	x0, x20
	bl	__rtl92s_phy_calculate_bit_shift
	bic	w8, w23, w20
	lsl	w9, w19, w0
	orr	w19, w9, w8
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_rtl_write_dword
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_RF,4,2                    ; @COMP_RF
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regaddr(%#x), bitmask(%#x), data(%#x)\n"

	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
.subsections_via_symbols
