	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nl80211_set_channel
___nl80211_set_channel:                 ## @__nl80211_set_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	(%r15), %r12d
	jmp	LBB0_3
LBB0_1:
	movl	$129, %r12d
LBB0_3:
	movq	%r15, %rdi
	callq	_nl80211_can_set_dev_channel
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nl80211_parse_chandef
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r14, %rdi
	callq	_mutex_lock
	addl	$-128, %r12d
	cmpl	$3, %r12d
	ja	LBB0_14
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	cmpl	$0, 8(%r15)
	je	LBB0_10
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_13:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cfg80211_set_monitor_channel
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_12:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cfg80211_set_mesh_channel
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_10:
	leaq	4(%r14), %rdi
	leaq	-40(%rbp), %rsi
	callq	_cfg80211_reg_can_beacon
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	-40(%rbp), %eax
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___nl80211_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nl80211_set_channel
___nl80211_set_channel:                 ; @__nl80211_set_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w22, [x20]
	b	LBB0_3
LBB0_2:
	mov	w22, #129
LBB0_3:
	mov	x0, x20
	bl	_nl80211_can_set_dev_channel
	cbz	w0, LBB0_9
; %bb.4:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_nl80211_parse_chandef
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.5:
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.6:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_12
; %bb.8:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_10:
	add	x1, sp, #8
	mov	x0, x19
	bl	_cfg80211_set_monitor_channel
	mov	x21, x0
	b	LBB0_16
LBB0_11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_cfg80211_set_mesh_channel
	mov	x21, x0
	b	LBB0_16
LBB0_12:
	add	x0, x19, #4
	add	x1, sp, #8
	bl	_cfg80211_reg_can_beacon
	cbz	w0, LBB0_14
; %bb.13:
	mov	w21, #0
	ldr	w8, [sp, #8]
	str	w8, [x20, #4]
	b	LBB0_16
LBB0_14:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_17:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___nl80211_set_channel
.subsections_via_symbols
