	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_macid_initialize_mediastatus
_rtl8821ae_macid_initialize_mediastatus: ## @rtl8821ae_macid_initialize_mediastatus
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_rtl_priv
	movq	%rax, %r14
	movq	_RT_MEDIA_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$1, -60(%rbp)
	movq	_MAC_ID_STATIC_FOR_BROADCAST_MULTICAST@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	_MAC_ID_STATIC_FOR_BT_CLIENT_END@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_H2C_FW_MEDIASTATUSRPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	movl	(%r12), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_MEDIA_CONNECT,4,2           ## @RT_MEDIA_CONNECT
	.comm	_MAC_ID_STATIC_FOR_BROADCAST_MULTICAST,4,2 ## @MAC_ID_STATIC_FOR_BROADCAST_MULTICAST
	.comm	_MAC_ID_STATIC_FOR_BT_CLIENT_END,4,2 ## @MAC_ID_STATIC_FOR_BT_CLIENT_END
	.comm	_HW_VAR_H2C_FW_MEDIASTATUSRPT,4,2 ## @HW_VAR_H2C_FW_MEDIASTATUSRPT
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialize MacId media status: from %d to %d\n"

	.no_dead_strip	_rtl8821ae_macid_initialize_mediastatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_macid_initialize_mediastatus
_rtl8821ae_macid_initialize_mediastatus: ; @rtl8821ae_macid_initialize_mediastatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_rtl_priv
	mov	x20, x0
Lloh3:
	adrp	x8, _RT_MEDIA_CONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT_MEDIA_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x21, _MAC_ID_STATIC_FOR_BROADCAST_MULTICAST@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MAC_ID_STATIC_FOR_BROADCAST_MULTICAST@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh8:
	adrp	x22, _MAC_ID_STATIC_FOR_BT_CLIENT_END@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MAC_ID_STATIC_FOR_BT_CLIENT_END@GOTPAGEOFF]
	ldr	w9, [x22]
	stp	w8, w9, [sp, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _HW_VAR_H2C_FW_MEDIASTATUSRPT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HW_VAR_H2C_FW_MEDIASTATUSRPT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
Lloh13:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w4, [x21]
	ldr	w5, [x22]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_MEDIA_CONNECT,4,2           ; @RT_MEDIA_CONNECT
	.comm	_MAC_ID_STATIC_FOR_BROADCAST_MULTICAST,4,2 ; @MAC_ID_STATIC_FOR_BROADCAST_MULTICAST
	.comm	_MAC_ID_STATIC_FOR_BT_CLIENT_END,4,2 ; @MAC_ID_STATIC_FOR_BT_CLIENT_END
	.comm	_HW_VAR_H2C_FW_MEDIASTATUSRPT,4,2 ; @HW_VAR_H2C_FW_MEDIASTATUSRPT
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialize MacId media status: from %d to %d\n"

	.no_dead_strip	_rtl8821ae_macid_initialize_mediastatus
.subsections_via_symbols
