	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ee_set_network_type       ## -- Begin function rtl92ee_set_network_type
	.p2align	4, 0x90
_rtl92ee_set_network_type:              ## @rtl92ee_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, %r15d
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	__rtl92ee_set_media_status
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	(%rbx), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_7:
	callq	_rtl92ee_set_check_bssid
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ee_set_network_type       ; -- Begin function rtl92ee_set_network_type
	.p2align	2
_rtl92ee_set_network_type:              ; @rtl92ee_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
	mov	x0, x19
	mov	x1, x20
	bl	__rtl92ee_set_media_status
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	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	_rtl92ee_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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
.subsections_via_symbols
