	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_set_mesh_channel      ## -- Begin function cfg80211_set_mesh_channel
	.p2align	4, 0x90
_cfg80211_set_mesh_channel:             ## @cfg80211_set_mesh_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	(%r14), %rax
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	movl	28(%r15), %edi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	8(%r14), %edx
	movq	_CHAN_MODE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cfg80211_can_use_chan
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movl	28(%r15), %esi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_rdev_libertas_set_mesh_channel
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movl	8(%r14), %eax
	movl	%eax, 24(%r15)
	jmp	LBB0_12
LBB0_9:
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.10:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_11:
	movups	(%r14), %xmm0
	movups	%xmm0, (%r15)
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	_ENETDOWN@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_CHAN_MODE_SHARED,4,2           ## @CHAN_MODE_SHARED
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_set_mesh_channel      ; -- Begin function cfg80211_set_mesh_channel
	.p2align	2
_cfg80211_set_mesh_channel:             ; @cfg80211_set_mesh_channel
	.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, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #28]
	bl	_netif_running
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w2, [x20, #8]
Lloh3:
	adrp	x8, _CHAN_MODE_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHAN_MODE_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_cfg80211_can_use_chan
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	w1, [x19, #28]
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_rdev_libertas_set_mesh_channel
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w8, [x20, #8]
	str	w8, [x19, #24]
	b	LBB0_12
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	ldr	q0, [x20]
	str	q0, [x19]
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_CHAN_MODE_SHARED,4,2           ; @CHAN_MODE_SHARED
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
