	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_runtime_change_iftype
_ieee80211_runtime_change_iftype:       ## @ieee80211_runtime_change_iftype
	.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, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movl	4(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.2:
	movl	$25, %ecx
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.3:
	leal	-128(%r14), %eax
	cmpl	$5, %eax
	jae	LBB0_8
## %bb.4:
	movslq	%eax, %r13
	leaq	l_switch.table.ieee80211_runtime_change_iftype(%rip), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r15, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_ieee80211_check_concurrent_iface
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	leaq	l_switch.table.ieee80211_runtime_change_iftype.1(%rip), %rax
	movl	(%rax,%r13,4), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_do_stop
	movq	%r15, %rdi
	callq	_ieee80211_teardown_sdata
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_drv_change_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	4(%r15), %r14d
LBB0_7:
	movq	%r15, %rdi
	callq	_ieee80211_check_queues
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ieee80211_setup_sdata
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_do_open
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%eax, %edx
	callq	_WARN
	jmp	LBB0_11
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type change: do_open returned %d"

	.no_dead_strip	_ieee80211_runtime_change_iftype
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ieee80211_runtime_change_iftype
l_switch.table.ieee80211_runtime_change_iftype:
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	132                             ## 0x84

	.p2align	2                               ## @switch.table.ieee80211_runtime_change_iftype.1
l_switch.table.ieee80211_runtime_change_iftype.1:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_runtime_change_iftype
_ieee80211_runtime_change_iftype:       ; @ieee80211_runtime_change_iftype
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_ASSERT_RTNL
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #4
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #25
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_7
; %bb.2:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hs	LBB0_7
; %bb.3:
	sbfiz	x24, x8, #2, #32
Lloh0:
	adrp	x8, l_switch.table.ieee80211_runtime_change_iftype@PAGE
Lloh1:
	add	x8, x8, l_switch.table.ieee80211_runtime_change_iftype@PAGEOFF
	ldr	w23, [x8, x24]
	mov	x0, x19
	mov	x1, x23
	bl	_ieee80211_check_concurrent_iface
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, l_switch.table.ieee80211_runtime_change_iftype.1@PAGE
Lloh3:
	add	x8, x8, l_switch.table.ieee80211_runtime_change_iftype.1@PAGEOFF
	ldr	w22, [x8, x24]
	mov	x0, x19
	mov	w1, #0
	bl	_ieee80211_do_stop
	mov	x0, x19
	bl	_ieee80211_teardown_sdata
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_drv_change_interface
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w20, [x19, #4]
LBB0_6:
	mov	x0, x19
	bl	_ieee80211_check_queues
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_setup_sdata
	mov	x0, x19
	mov	w1, #0
	bl	_ieee80211_do_open
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x0
	bl	_WARN
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type change: do_open returned %d"

	.no_dead_strip	_ieee80211_runtime_change_iftype
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ieee80211_runtime_change_iftype
l_switch.table.ieee80211_runtime_change_iftype:
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	132                             ; 0x84

	.p2align	2                               ; @switch.table.ieee80211_runtime_change_iftype.1
l_switch.table.ieee80211_runtime_change_iftype.1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
