	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_set_interface
_nl80211_set_interface:                 ## @nl80211_set_interface
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	8(%rsi), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %r15
	leaq	-48(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r15), %rax
	movl	(%rax), %r12d
	movq	(%r13), %rcx
	movq	_NL80211_ATTR_IFTYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_nla_get_u32
	movq	_NL80211_IFTYPE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_6
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	cmpl	%eax, %r12d
	setne	%r14b
	movq	(%r13), %rcx
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	_NL80211_ATTR_MESH_ID@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_11
## %bb.5:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.8:
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wdev_lock
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IEEE80211_MAX_MESH_ID_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movl	12(%rcx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_data
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_wdev_unlock
	movq	(%r13), %rcx
LBB0_11:
	movq	_NL80211_ATTR_4ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	callq	_nla_get_u8
	xorl	%edx, %edx
	testl	%eax, %eax
	setne	%dl
	movl	%edx, -48(%rbp)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_nl80211_valid_4addr
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_23
## %bb.13:
	movq	(%r13), %rax
	movq	_NL80211_ATTR_MNTR_FLAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_15
	jmp	LBB0_18
LBB0_14:
	movl	$-1, -48(%rbp)
	movq	_NL80211_ATTR_MNTR_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
LBB0_15:
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.16:
	leaq	-72(%rbp), %r14
	movq	%r14, %rsi
	callq	_parse_monitor_flags
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_19
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_20
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_cfg80211_change_iface
                                        ## kill: def $eax killed $eax def $rax
LBB0_20:
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	movl	-48(%rbp), %ecx
	cmpl	$-1, %ecx
	je	LBB0_23
## %bb.22:
	movq	(%r15), %rax
	movl	%ecx, 4(%rax)
	xorl	%eax, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_IFTYPE,8,3        ## @NL80211_ATTR_IFTYPE
	.comm	_NL80211_IFTYPE_MAX,4,2         ## @NL80211_IFTYPE_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_ATTR_MESH_ID,8,3       ## @NL80211_ATTR_MESH_ID
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ## @IEEE80211_MAX_SSID_LEN
	.comm	_IEEE80211_MAX_MESH_ID_LEN,8,3  ## @IEEE80211_MAX_MESH_ID_LEN
	.comm	_NL80211_ATTR_4ADDR,8,3         ## @NL80211_ATTR_4ADDR
	.comm	_NL80211_ATTR_MNTR_FLAGS,8,3    ## @NL80211_ATTR_MNTR_FLAGS
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.no_dead_strip	_nl80211_set_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_set_interface
_nl80211_set_interface:                 ; @nl80211_set_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	ldr	x8, [x1, #8]
	ldp	x20, x19, [x8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	ldr	w21, [x8]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _NL80211_ATTR_IFTYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_IFTYPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_nla_get_u32
Lloh3:
	adrp	x8, _NL80211_IFTYPE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_15
; %bb.2:
	cmp	w21, w0
	cset	w25, ne
	ldr	x8, [x22]
	mov	x21, x0
	b	LBB0_4
LBB0_3:
	mov	w25, #0
LBB0_4:
Lloh6:
	adrp	x26, _NL80211_ATTR_MESH_ID@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NL80211_ATTR_MESH_ID@GOTPAGEOFF]
	ldr	x9, [x26]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_15
; %bb.6:
	ldr	x23, [x19]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	mov	x0, x23
	bl	_wdev_lock
Lloh13:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _IEEE80211_MAX_MESH_ID_LEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IEEE80211_MAX_MESH_ID_LEN@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	x8, [x22]
	ldr	x9, [x26]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	str	w0, [x23, #8]
	ldr	w24, [x23, #12]
	ldr	x8, [x22]
	ldr	x9, [x26]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_data
	mov	x1, x0
	ldr	w2, [x23, #8]
	mov	x0, x24
	bl	_memcpy
	mov	x0, x23
	bl	_wdev_unlock
	ldr	x8, [x22]
LBB0_9:
Lloh19:
	adrp	x9, _NL80211_ATTR_4ADDR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NL80211_ATTR_4ADDR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_12
; %bb.10:
	bl	_nla_get_u8
	cmp	w0, #0
	cset	w2, ne
	str	w2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_nl80211_valid_4addr
	cbnz	w0, LBB0_17
; %bb.11:
	ldr	x8, [x22]
Lloh22:
	adrp	x9, _NL80211_ATTR_MNTR_FLAGS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NL80211_ATTR_MNTR_FLAGS@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbnz	x0, LBB0_13
	b	LBB0_19
LBB0_12:
	mov	w9, #-1
	str	w9, [sp, #8]
Lloh25:
	adrp	x9, _NL80211_ATTR_MNTR_FLAGS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NL80211_ATTR_MNTR_FLAGS@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_18
LBB0_13:
Lloh28:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_15
; %bb.14:
	add	x22, sp, #4
	add	x1, sp, #4
	bl	_parse_monitor_flags
	cbnz	w0, LBB0_17
	b	LBB0_20
LBB0_15:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	cbz	w25, LBB0_23
LBB0_19:
	mov	x22, #0
LBB0_20:
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_cfg80211_change_iface
	cbnz	w0, LBB0_17
LBB0_21:
	ldr	w8, [sp, #8]
	cmn	w8, #1
	b.eq	LBB0_17
; %bb.22:
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9, #4]
	b	LBB0_17
LBB0_23:
	mov	w0, #0
	cbz	w0, LBB0_21
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_IFTYPE,8,3        ; @NL80211_ATTR_IFTYPE
	.comm	_NL80211_IFTYPE_MAX,4,2         ; @NL80211_IFTYPE_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_ATTR_MESH_ID,8,3       ; @NL80211_ATTR_MESH_ID
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ; @IEEE80211_MAX_SSID_LEN
	.comm	_IEEE80211_MAX_MESH_ID_LEN,8,3  ; @IEEE80211_MAX_MESH_ID_LEN
	.comm	_NL80211_ATTR_4ADDR,8,3         ; @NL80211_ATTR_4ADDR
	.comm	_NL80211_ATTR_MNTR_FLAGS,8,3    ; @NL80211_ATTR_MNTR_FLAGS
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.no_dead_strip	_nl80211_set_interface
.subsections_via_symbols
