	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_debugfs_bug_write
_carl9170_debugfs_bug_write:            ## @carl9170_debugfs_bug_write
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movsbl	(%rsi), %eax
	addl	$-70, %eax
	cmpl	$12, %eax
	ja	LBB0_1
## %bb.3:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	$1, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_7:
	movq	%r14, %rdi
	callq	_carl9170_mac_reset
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_6
LBB0_9:
	movq	8(%r14), %rdi
	movl	(%rdi), %r15d
	callq	_cfg80211_get_chandef_type
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_carl9170_set_channel
LBB0_8:
	testl	%eax, %eax
	cltq
	cmovsq	%rax, %rbx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_IS_STARTED
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movl	%ecx, (%r14)
	movq	_CARL9170_RR_USER_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_carl9170_restart
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_7
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_9
	.long	L0_0_set_1
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_CARL9170_RR_USER_REQUEST,4,2   ## @CARL9170_RR_USER_REQUEST
	.no_dead_strip	_carl9170_debugfs_bug_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_debugfs_bug_write
_carl9170_debugfs_bug_write:            ; @carl9170_debugfs_bug_write
	.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
	cbz	x2, LBB0_4
; %bb.1:
	ldrsb	w8, [x1]
	sub	w9, w8, #70
	cmp	w9, #12
	b.hi	LBB0_4
; %bb.2:
	mov	x19, x2
	mov	x20, x0
	mov	w8, #1
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	x0, x20
	bl	_carl9170_mac_reset
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_10
LBB0_5:
	ldr	x0, [x20, #8]
	ldr	w21, [x0]
	bl	_cfg80211_get_chandef_type
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_carl9170_set_channel
LBB0_6:
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	w0, #0
	csel	x19, x8, x19, lt
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_IS_STARTED
	cbz	w0, LBB0_10
; %bb.8:
	mov	w8, #0
LBB0_9:
	str	w8, [x20]
Lloh5:
	adrp	x8, _CARL9170_RR_USER_REQUEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CARL9170_RR_USER_REQUEST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_carl9170_restart
LBB0_10:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CARL9170_RR_USER_REQUEST,4,2   ; @CARL9170_RR_USER_REQUEST
	.no_dead_strip	_carl9170_debugfs_bug_write
.subsections_via_symbols
