	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set80211chanlist
_set80211chanlist:                      ## @set80211chanlist
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_strlen
	leaq	1(%rax), %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-44(%rbp), %r13
	leaq	-48(%rbp), %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx
	movq	_IEEE80211_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	movl	-44(%rbp), %edx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %edi
	movl	%edx, %esi
	callq	_setbit
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx
	movq	_IEEE80211_CHAN_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %edx
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
	movl	(%rbx), %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ecx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
	movl	-48(%rbp), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ebx
	cmpl	%ecx, %ebx
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
	movl	-44(%rbp), %ebx
	movl	-48(%rbp), %ecx
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %ebx
	jg	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-56(%rbp), %edi
	movl	%ebx, %esi
	callq	_setbit
	leal	1(%rbx), %eax
	cmpl	-48(%rbp), %ebx
	movl	%eax, %ebx
	jl	LBB0_18
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%r12), %ebx
	decq	%r12
	movq	%r12, %r15
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_isspace
	incq	%r15
	testq	%rax, %rax
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	$-48, %ebx
	cmpl	$9, %ebx
	jbe	LBB0_3
LBB0_23:
	movq	_IEEE80211_IOC_CHANLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r8
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_set80211
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

L_.str.1:                               ## @.str.1
	.asciz	"%u-%u"

	.comm	_IEEE80211_CHAN_MAX,4,2         ## @IEEE80211_CHAN_MAX
L_.str.2:                               ## @.str.2
	.asciz	"channel %u out of range, max %u"

L_.str.3:                               ## @.str.3
	.asciz	"void channel range, %u > %u"

	.comm	_IEEE80211_IOC_CHANLIST,4,2     ## @IEEE80211_IOC_CHANLIST
	.no_dead_strip	_set80211chanlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set80211chanlist
_set80211chanlist:                      ; @set80211chanlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x0
	bl	_strlen
	add	x0, x0, #1
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_strcpy
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x27, _IEEE80211_CHAN_MAX@GOTPAGE
Lloh5:
	ldr	x27, [x27, _IEEE80211_CHAN_MAX@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x25, x20
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	mov	x0, x25
	mov	w1, #44
	bl	_strchr
	mov	x24, x0
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x24], #1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #20
	add	x3, sp, #16
	mov	x0, x25
	mov	x1, x21
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #20]
	ldr	w8, [x27]
	cmp	w1, w8
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	x1, x8, [sp]
	mov	w0, #-1
	mov	x1, x22
	bl	_errx
	ldr	w1, [sp, #20]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #24]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_setbit
	b	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]
	ldr	w9, [x27]
	cmp	w8, w9
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	stp	x8, x9, [sp]
	mov	w0, #-1
	mov	x1, x22
	bl	_errx
	ldr	w9, [x27]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #16]
	cmp	w8, w9
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x8, x9, [sp]
	mov	w0, #-1
	mov	x1, x22
	bl	_errx
	ldr	w8, [sp, #16]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w25, [sp, #20]
	cmp	w25, w8
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x25, x8, [sp]
	mov	w0, #-1
	mov	x1, x23
	bl	_errx
	ldp	w8, w25, [sp, #16]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w8
	b.gt	LBB0_18
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [sp, #24]
	mov	x1, x25
	bl	_setbit
	add	w8, w25, #1
	ldr	w9, [sp, #16]
	cmp	w25, w9
	mov	x25, x8
	b.lt	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x24, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w26, [x24], #-1
	mov	x25, x24
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_isspace
	add	x25, x25, #1
	cbnz	x0, LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w26, #48
	cmp	w8, #9
	b.ls	LBB0_3
LBB0_22:
Lloh10:
	adrp	x8, _IEEE80211_IOC_CHANLIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_IOC_CHANLIST@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x4, sp, #24
	mov	x0, x19
	mov	w2, #0
	mov	w3, #4
	bl	_set80211
	mov	x0, x20
	bl	_free
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

l_.str.1:                               ; @.str.1
	.asciz	"%u-%u"

	.comm	_IEEE80211_CHAN_MAX,4,2         ; @IEEE80211_CHAN_MAX
l_.str.2:                               ; @.str.2
	.asciz	"channel %u out of range, max %u"

l_.str.3:                               ; @.str.3
	.asciz	"void channel range, %u > %u"

	.comm	_IEEE80211_IOC_CHANLIST,4,2     ; @IEEE80211_IOC_CHANLIST
	.no_dead_strip	_set80211chanlist
.subsections_via_symbols
