	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_speed_scan
_store_speed_scan:                      ## @store_speed_scan
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtol
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %r13d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_SPEED_SCAN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	(%r12), %eax
	decl	%eax
	cmpl	%eax, %r14d
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r15), %edi
	movl	%r13d, %esi
	callq	_libipw_is_valid_channel
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	incl	%r14d
	movl	%r13d, (%rax,%rcx,4)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_IPW_WARNING
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$9, %al
	je	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtol
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movl	$0, (%rax,%rcx,4)
LBB0_5:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_6
## %bb.15:
	movq	$0, 16(%r15)
	movq	_CFG_SPEED_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	jmp	LBB0_16
LBB0_6:
	movq	_CFG_SPEED_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
LBB0_16:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SPEED_SCAN,4,2             ## @MAX_SPEED_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping invalid channel request: %d\n"

	.comm	_CFG_SPEED_SCAN,4,2             ## @CFG_SPEED_SCAN
	.no_dead_strip	_store_speed_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_speed_scan
_store_speed_scan:                      ; @store_speed_scan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtol
	cbz	w0, LBB0_14
; %bb.1:
	mov	x23, x0
	mov	w24, #0
Lloh0:
	adrp	x25, _MAX_SPEED_SCAN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_SPEED_SCAN@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtol
	mov	x23, x0
	cbz	w0, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x25]
	sub	w8, w8, #1
	cmp	w24, w8
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #24]
	mov	x1, x23
	bl	_libipw_is_valid_channel
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	str	w23, [x8, w24, sxtw #2]
	add	w24, w24, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_IPW_WARNING
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x21]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x21, x21, #1
	b	LBB0_9
LBB0_11:
	ldr	x8, [x20]
	str	wzr, [x8, w24, sxtw #2]
LBB0_12:
	cbz	w24, LBB0_14
; %bb.13:
	str	xzr, [x20, #16]
Lloh4:
	adrp	x8, _CFG_SPEED_SCAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CFG_SPEED_SCAN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x8, _CFG_SPEED_SCAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CFG_SPEED_SCAN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
LBB0_15:
	str	w8, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SPEED_SCAN,4,2             ; @MAX_SPEED_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping invalid channel request: %d\n"

	.comm	_CFG_SPEED_SCAN,4,2             ; @CFG_SPEED_SCAN
	.no_dead_strip	_store_speed_scan
.subsections_via_symbols
