	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_set_network_type     ## -- Begin function rtl8821ae_set_network_type
	.p2align	4, 0x90
_rtl8821ae_set_network_type:            ## @rtl8821ae_set_network_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	__rtl8821ae_set_media_status
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	(%rbx), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rax)
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %esi
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
LBB0_6:
	callq	_rtl8821ae_set_check_bssid
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8821ae_set_network_type!\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_set_network_type     ; -- Begin function rtl8821ae_set_network_type
	.p2align	2
_rtl8821ae_set_network_type:            ; @rtl8821ae_set_network_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	mov	x0, x19
	mov	x1, x20
	bl	__rtl8821ae_set_media_status
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #0
LBB0_6:
	bl	_rtl8821ae_set_check_bssid
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8821ae_set_network_type!\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
.subsections_via_symbols
