	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wds_wext_siwap
_cfg80211_wds_wext_siwap:               ## @cfg80211_wds_wext_siwap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movl	12(%rbx), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_WDS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	(%r14), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.8:
	addq	$8, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_rdev_set_wds_peer
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	addq	$8, %rbx
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_WDS,8,3         ## @NL80211_IFTYPE_WDS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_cfg80211_wds_wext_siwap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wds_wext_siwap
_cfg80211_wds_wext_siwap:               ; @cfg80211_wds_wext_siwap
	.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, x2
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x22, #12]
	bl	_wiphy_to_dev
	mov	x21, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_WDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_WDS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.8:
	add	x20, x20, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_rdev_set_wds_peer
	cbnz	w0, LBB0_6
; %bb.9:
	add	x0, x22, #8
Lloh10:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_10:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_WDS,8,3         ; @NL80211_IFTYPE_WDS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_cfg80211_wds_wext_siwap
.subsections_via_symbols
