	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_wext_siwmode          ## -- Begin function cfg80211_wext_siwmode
	.p2align	4, 0x90
_cfg80211_wext_siwmode:                 ## @cfg80211_wext_siwmode
	.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
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movl	4(%r13), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r14
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.cfg80211_wext_siwmode(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	cmpl	(%r13), %r15d
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_cfg80211_lock_rdev
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_cfg80211_change_iface
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_cfg80211_unlock_rdev
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_WDS,4,2         ## @NL80211_IFTYPE_WDS
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cfg80211_wext_siwmode
l_switch.table.cfg80211_wext_siwmode:
	.quad	_NL80211_IFTYPE_WDS
	.quad	_NL80211_IFTYPE_MONITOR
	.quad	_NL80211_IFTYPE_STATION
	.quad	_NL80211_IFTYPE_ADHOC

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_wext_siwmode          ; -- Begin function cfg80211_wext_siwmode
	.p2align	2
_cfg80211_wext_siwmode:                 ; @cfg80211_wext_siwmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x22, #4]
	bl	_wiphy_to_dev
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.cfg80211_wext_siwmode@PAGE
Lloh1:
	add	x9, x9, l_switch.table.cfg80211_wext_siwmode@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w21, [x8]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w19, #0
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_cfg80211_lock_rdev
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, #0
	bl	_cfg80211_change_iface
	mov	x19, x0
	mov	x0, x20
	bl	_cfg80211_unlock_rdev
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_WDS,4,2         ; @NL80211_IFTYPE_WDS
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cfg80211_wext_siwmode
l_switch.table.cfg80211_wext_siwmode:
	.quad	_NL80211_IFTYPE_WDS
	.quad	_NL80211_IFTYPE_MONITOR
	.quad	_NL80211_IFTYPE_STATION
	.quad	_NL80211_IFTYPE_ADHOC

.subsections_via_symbols
