	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92ee_set_media_status
__rtl92ee_set_media_status:             ## @_rtl92ee_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, %ebx
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_MSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	leal	-128(%rbx), %edx
	cmpl	$4, %edx
	ja	LBB0_4
## %bb.1:
	movl	%eax, %r13d
	movq	_LED_CTL_NO_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MSR_NOLINK@GOTPCREL(%rip), %rax
	leaq	L_.str(%rip), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	movq	_MSR_ADHOC@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_2:
	movq	_LED_CTL_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MSR_INFRA@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_LED_CTL_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MSR_AP@GOTPCREL(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
LBB0_6:
	movl	(%rax), %ebx
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_MSR_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	je	LBB0_9
## %bb.7:
	movq	8(%r15), %rcx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_9
## %bb.8:
	movq	_MSR_NOLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_LED_CTL_NO_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_9:
	andl	$252, %r13d
	movq	_MSR_NOLINK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_11
## %bb.10:
	movq	_MSR_INFRA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_11
## %bb.12:
	movq	_MSR_ADHOC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_14
## %bb.13:
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.15:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_16
LBB0_11:
	movq	%r14, %rdi
	callq	__rtl92ee_stop_tx_beacon
	movq	%r14, %rdi
	callq	__rtl92ee_enable_bcn_sub_func
	jmp	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	callq	__rtl92ee_resume_tx_beacon
	movq	%r14, %rdi
	callq	__rtl92ee_disable_bcn_sub_func
LBB0_16:
	movq	_MSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	orl	%ebx, %r13d
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_rtl_write_byte
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movq	_REG_BCNTCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	_MSR_AP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_18
## %bb.17:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	jmp	LBB0_19
LBB0_18:
	movq	%r15, %rdi
	movl	$102, %edx
	callq	_rtl_write_byte
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %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_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_MSR,8,3                        ## @MSR
	.comm	_LED_CTL_NO_LINK,4,2            ## @LED_CTL_NO_LINK
	.comm	_MSR_NOLINK,4,2                 ## @MSR_NOLINK
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set Network type to NO LINK!\n"

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

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

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

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

	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"Set HW_VAR_MEDIA_STATUS: No such media status(%x).\n"

	.comm	_REG_BCNTCFG,8,3                ## @REG_BCNTCFG
	.no_dead_strip	__rtl92ee_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 _rtl92ee_set_media_status
__rtl92ee_set_media_status:             ; @_rtl92ee_set_media_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _MSR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSR@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_rtl_read_byte
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x27, _LED_CTL_NO_LINK@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LED_CTL_NO_LINK@GOTPAGEOFF]
	ldr	w21, [x27]
Lloh4:
	adrp	x26, _MSR_NOLINK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MSR_NOLINK@GOTPAGEOFF]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
Lloh10:
	adrp	x24, _MSR_AP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MSR_AP@GOTPAGEOFF]
	mov	x8, x26
	br	x10
LBB0_2:
Lloh12:
	adrp	x8, _MSR_ADHOC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSR_ADHOC@GOTPAGEOFF]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_pr_err
	mov	w0, #1
	b	LBB0_18
LBB0_4:
Lloh18:
	adrp	x8, _LED_CTL_LINK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LED_CTL_LINK@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
Lloh21:
	adrp	x8, _MSR_INFRA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSR_INFRA@GOTPAGEOFF]
Lloh23:
	adrp	x3, l_.str.2@PAGE
Lloh24:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _LED_CTL_LINK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LED_CTL_LINK@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
Lloh28:
	adrp	x8, _MSR_AP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSR_AP@GOTPAGEOFF]
Lloh30:
	adrp	x3, l_.str.3@PAGE
Lloh31:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_6:
Lloh32:
	adrp	x28, _MSR_INFRA@GOTPAGE
Lloh33:
	ldr	x28, [x28, _MSR_INFRA@GOTPAGEOFF]
	ldr	w25, [x8]
Lloh34:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x24]
	cmp	w25, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x9, [x19, #8]
Lloh40:
	adrp	x10, _MAC80211_LINKED@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MAC80211_LINKED@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_9
; %bb.8:
	ldr	w25, [x26]
	ldr	w21, [x27]
LBB0_9:
	and	w22, w22, #0xfc
	ldr	w9, [x26]
	ldr	w10, [x28]
	cmp	w25, w9
	ccmp	w25, w10, #4, ne
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	__rtl92ee_stop_tx_beacon
	mov	x0, x20
	bl	__rtl92ee_enable_bcn_sub_func
	b	LBB0_14
LBB0_11:
Lloh43:
	adrp	x9, _MSR_ADHOC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MSR_ADHOC@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w25, w9
	ccmp	w25, w8, #4, ne
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	__rtl92ee_resume_tx_beacon
	mov	x0, x20
	bl	__rtl92ee_disable_bcn_sub_func
	b	LBB0_14
LBB0_13:
Lloh46:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	str	x25, [sp]
Lloh52:
	adrp	x3, l_.str.5@PAGE
Lloh53:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_14:
	ldr	x1, [x23]
	orr	w2, w25, w22
	mov	x0, x19
	bl	_rtl_write_byte
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	w8, [x24]
Lloh54:
	adrp	x9, _REG_BCNTCFG@GOTPAGE
Lloh55:
	ldr	x9, [x9, _REG_BCNTCFG@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, #1
	mov	x0, x19
	cmp	w25, w8
	b.ne	LBB0_16
; %bb.15:
	mov	w2, #0
	b	LBB0_17
LBB0_16:
	mov	w2, #102
LBB0_17:
	bl	_rtl_write_byte
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_MSR,8,3                        ; @MSR
	.comm	_LED_CTL_NO_LINK,4,2            ; @LED_CTL_NO_LINK
	.comm	_MSR_NOLINK,4,2                 ; @MSR_NOLINK
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set Network type to NO LINK!\n"

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

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

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

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

	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"Set HW_VAR_MEDIA_STATUS: No such media status(%x).\n"

	.comm	_REG_BCNTCFG,8,3                ; @REG_BCNTCFG
	.no_dead_strip	__rtl92ee_set_media_status
.subsections_via_symbols
