	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92c_bt_set_normal
_rtl92c_bt_set_normal:                  ## @rtl92c_bt_set_normal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_rtl_priv
	movq	(%rax), %rcx
	movq	_BT_OTHERBUSY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movl	$6203179, 8(%rax)               ## imm = 0x5EA72B
	movl	$6203179, %edx                  ## imm = 0x5EA72B
	jmp	LBB0_9
LBB0_2:
	movq	_BT_BUSY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	$6207535, 8(%rax)               ## imm = 0x5EB82F
	movl	$6207535, %edx                  ## imm = 0x5EB82F
	jmp	LBB0_9
LBB0_4:
	movq	_BT_SCO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.5:
	cmpl	$161, 16(%rax)
	jl	LBB0_7
## %bb.6:
	movl	$6203183, 8(%rax)               ## imm = 0x5EA72F
	movl	$6203183, %edx                  ## imm = 0x5EA72F
	jmp	LBB0_9
LBB0_8:
	movl	$0, 8(%rax)
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_7:
	movl	$6202155, 8(%rax)               ## imm = 0x5EA32B
	movl	$6202411, %edx                  ## imm = 0x5EA42B
LBB0_9:
	movl	%edx, 12(%rax)
	movq	_BT_IDLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.10:
	movl	24(%rax), %ecx
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	je	LBB0_12
## %bb.11:
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	cmpl	%edx, %ecx
	jne	LBB0_14
LBB0_12:
	movq	_BT_RSSI_STATE_BG_EDCA_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 20(%rax)
	je	LBB0_14
## %bb.13:
	movabsq	$26661142640113707, %rcx        ## imm = 0x5EB82B005EB82B
	movq	%rcx, 8(%rax)
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_OTHERBUSY,8,3               ## @BT_OTHERBUSY
	.comm	_BT_BUSY,8,3                    ## @BT_BUSY
	.comm	_BT_SCO,8,3                     ## @BT_SCO
	.comm	_BT_IDLE,8,3                    ## @BT_IDLE
	.comm	_WIRELESS_MODE_G,4,2            ## @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,4,2            ## @WIRELESS_MODE_B
	.comm	_BT_RSSI_STATE_BG_EDCA_LOW,4,2  ## @BT_RSSI_STATE_BG_EDCA_LOW
	.no_dead_strip	_rtl92c_bt_set_normal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92c_bt_set_normal
_rtl92c_bt_set_normal:                  ; @rtl92c_bt_set_normal
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_rtl_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BT_OTHERBUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BT_OTHERBUSY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #42795
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _BT_BUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BT_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	mov	w9, #47151
LBB0_4:
	movk	w9, #94, lsl #16
	str	w9, [x0, #8]
LBB0_5:
	str	w9, [x0, #12]
Lloh6:
	adrp	x9, _BT_IDLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BT_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:
	ldr	w8, [x0, #24]
Lloh9:
	adrp	x9, _WIRELESS_MODE_G@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WIRELESS_MODE_G@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:
Lloh12:
	adrp	x10, _WIRELESS_MODE_B@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_8:
	ldr	w8, [x0, #20]
Lloh15:
	adrp	x9, _BT_RSSI_STATE_BG_EDCA_LOW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BT_RSSI_STATE_BG_EDCA_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #47147
	movk	w8, #94, lsl #16
	dup.2s	v0, w8
	str	d0, [x0, #8]
LBB0_10:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh18:
	adrp	x9, _BT_SCO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BT_SCO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	mov	w9, #42795
	movk	w9, #94, lsl #16
	ldr	w10, [x0, #16]
	cmp	w10, #161
	b.lt	LBB0_15
; %bb.13:
	add	w9, w9, #4
	str	w9, [x0, #8]
	b	LBB0_5
LBB0_14:
	mov	w9, #0
	str	wzr, [x0, #8]
	b	LBB0_5
LBB0_15:
	sub	w10, w9, #1024
	str	w10, [x0, #8]
	sub	w9, w9, #768
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_OTHERBUSY,8,3               ; @BT_OTHERBUSY
	.comm	_BT_BUSY,8,3                    ; @BT_BUSY
	.comm	_BT_SCO,8,3                     ; @BT_SCO
	.comm	_BT_IDLE,8,3                    ; @BT_IDLE
	.comm	_WIRELESS_MODE_G,4,2            ; @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,4,2            ; @WIRELESS_MODE_B
	.comm	_BT_RSSI_STATE_BG_EDCA_LOW,4,2  ; @BT_RSSI_STATE_BG_EDCA_LOW
	.no_dead_strip	_rtl92c_bt_set_normal
.subsections_via_symbols
