	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92cu_set_media_status
__rtl92cu_set_media_status:             ## @_rtl92cu_set_media_status
	.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	%esi, %r13d
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_MSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movq	_LED_CTL_NO_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	__rtl92cu_stop_tx_beacon
	movq	%r14, %rdi
	callq	__rtl92cu_enable_bcn_sub_func
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	__rtl92cu_resume_tx_beacon
	movq	%r14, %rdi
	callq	__rtl92cu_disable_bcn_sub_func
	jmp	LBB0_5
LBB0_4:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_5:
	leal	-128(%r13), %edx
	cmpl	$3, %edx
	ja	LBB0_9
## %bb.6:
	andl	$252, %ebx
	movq	_MSR_ADHOC@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	_LED_CTL_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MSR_NOLINK@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	movl	%r13d, %esi
	callq	_pr_err
	movl	$1, %r13d
	jmp	LBB0_15
LBB0_7:
	movq	_LED_CTL_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MSR_INFRA@GOTPCREL(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_MSR_AP@GOTPCREL(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
LBB0_11:
	movq	_COMP_INIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %ebx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_MSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movq	_MSR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_MSR_AP@GOTPCREL(%rip), %rax
	movq	_REG_BCNTCFG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	incq	%rsi
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.12:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movl	$102, %edx
LBB0_14:
	callq	_rtl_write_byte
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MSR,8,3                        ## @MSR
	.comm	_LED_CTL_NO_LINK,4,2            ## @LED_CTL_NO_LINK
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set HW_VAR_MEDIA_STATUS:No such media status(%x)\n"

	.comm	_MSR_NOLINK,4,2                 ## @MSR_NOLINK
	.comm	_LED_CTL_LINK,4,2               ## @LED_CTL_LINK
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
L_.str.1:                               ## @.str.1
	.asciz	"Set Network type to NO LINK!\n"

	.comm	_MSR_ADHOC,4,2                  ## @MSR_ADHOC
L_.str.2:                               ## @.str.2
	.asciz	"Set Network type to Ad Hoc!\n"

	.comm	_MSR_INFRA,4,2                  ## @MSR_INFRA
L_.str.3:                               ## @.str.3
	.asciz	"Set Network type to STA!\n"

	.comm	_MSR_AP,4,2                     ## @MSR_AP
L_.str.4:                               ## @.str.4
	.asciz	"Set Network type to AP!\n"

L_.str.5:                               ## @.str.5
	.asciz	"Network type %d not supported!\n"

	.comm	_MSR_MASK,4,2                   ## @MSR_MASK
	.comm	_REG_BCNTCFG,8,3                ## @REG_BCNTCFG
	.no_dead_strip	__rtl92cu_set_media_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92cu_set_media_status
__rtl92cu_set_media_status:             ; @_rtl92cu_set_media_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x24, _MSR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSR@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_rtl_read_byte
	mov	x23, x0
Lloh2:
	adrp	x8, _LED_CTL_NO_LINK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_CTL_NO_LINK@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	and	w8, w22, #0xfffffffe
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	__rtl92cu_stop_tx_beacon
	mov	x0, x20
	bl	__rtl92cu_enable_bcn_sub_func
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	__rtl92cu_resume_tx_beacon
	mov	x0, x20
	bl	__rtl92cu_disable_bcn_sub_func
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	str	x22, [sp]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_5:
	sub	w9, w22, #128
	cmp	w9, #3
	b.hi	LBB0_8
; %bb.6:
Lloh13:
	adrp	x8, _MSR_ADHOC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSR_ADHOC@GOTPAGEOFF]
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	and	w22, w23, #0xfc
Lloh17:
	adrp	x10, lJTI0_0@PAGE
Lloh18:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
Lloh19:
	adrp	x23, _MSR_AP@GOTPAGE
Lloh20:
	ldr	x23, [x23, _MSR_AP@GOTPAGEOFF]
	br	x11
LBB0_7:
Lloh21:
	adrp	x8, _LED_CTL_LINK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LED_CTL_LINK@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
Lloh24:
	adrp	x8, _MSR_NOLINK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSR_NOLINK@GOTPAGEOFF]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	mov	w0, #1
	b	LBB0_15
LBB0_9:
Lloh30:
	adrp	x8, _LED_CTL_LINK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LED_CTL_LINK@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
Lloh33:
	adrp	x8, _MSR_INFRA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSR_INFRA@GOTPAGEOFF]
Lloh35:
	adrp	x3, l_.str.3@PAGE
Lloh36:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh37:
	adrp	x8, _MSR_AP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSR_AP@GOTPAGEOFF]
Lloh39:
	adrp	x3, l_.str.4@PAGE
Lloh40:
	add	x3, x3, l_.str.4@PAGEOFF
LBB0_11:
	ldr	w25, [x8]
Lloh41:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RT_TRACE
	orr	w22, w25, w22
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x22
	bl	_rtl_write_byte
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
Lloh47:
	adrp	x8, _MSR_MASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MSR_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	and	w8, w8, w22
	ldr	w9, [x23]
Lloh50:
	adrp	x10, _REG_BCNTCFG@GOTPAGE
Lloh51:
	ldr	x10, [x10, _REG_BCNTCFG@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x10]
	add	x1, x10, #1
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	mov	w2, #0
	b	LBB0_14
LBB0_13:
	mov	w2, #102
LBB0_14:
	bl	_rtl_write_byte
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_MSR,8,3                        ; @MSR
	.comm	_LED_CTL_NO_LINK,4,2            ; @LED_CTL_NO_LINK
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set HW_VAR_MEDIA_STATUS:No such media status(%x)\n"

	.comm	_MSR_NOLINK,4,2                 ; @MSR_NOLINK
	.comm	_LED_CTL_LINK,4,2               ; @LED_CTL_LINK
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
l_.str.1:                               ; @.str.1
	.asciz	"Set Network type to NO LINK!\n"

	.comm	_MSR_ADHOC,4,2                  ; @MSR_ADHOC
l_.str.2:                               ; @.str.2
	.asciz	"Set Network type to Ad Hoc!\n"

	.comm	_MSR_INFRA,4,2                  ; @MSR_INFRA
l_.str.3:                               ; @.str.3
	.asciz	"Set Network type to STA!\n"

	.comm	_MSR_AP,4,2                     ; @MSR_AP
l_.str.4:                               ; @.str.4
	.asciz	"Set Network type to AP!\n"

l_.str.5:                               ; @.str.5
	.asciz	"Network type %d not supported!\n"

	.comm	_MSR_MASK,4,2                   ; @MSR_MASK
	.comm	_REG_BCNTCFG,8,3                ; @REG_BCNTCFG
	.no_dead_strip	__rtl92cu_set_media_status
.subsections_via_symbols
