	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_if_change_type       ## -- Begin function ieee80211_if_change_type
	.p2align	4, 0x90
_ieee80211_if_change_type:              ## @ieee80211_if_change_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	leaq	16(%rbx), %rdi
	callq	_ieee80211_vif_type_p2p
	cmpl	%r14d, %eax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_ieee80211_sdata_running
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%r14d, %esi
	callq	_ieee80211_runtime_change_iftype
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_4
LBB0_3:
	callq	_ieee80211_teardown_sdata
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ieee80211_setup_sdata
LBB0_4:
	movq	$0, 8(%rbx)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_if_change_type       ; -- Begin function ieee80211_if_change_type
	.p2align	2
_ieee80211_if_change_type:              ; @ieee80211_if_change_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_ASSERT_RTNL
	add	x0, x19, #16
	bl	_ieee80211_vif_type_p2p
	cmp	w0, w20
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_ieee80211_sdata_running
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_runtime_change_iftype
	cbnz	w0, LBB0_7
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_ieee80211_teardown_sdata
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_setup_sdata
LBB0_4:
	str	xzr, [x19, #8]
Lloh0:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
.subsections_via_symbols
