	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_chan                       ## -- Begin function set_chan
	.p2align	4, 0x90
_set_chan:                              ## @set_chan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_chaninfo@GOTPCREL(%rip), %r14
	cmpl	%edi, (%r14)
	je	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	movl	%edi, 4(%r14)
	leaq	4(%r14), %rdx
	movl	8(%r14), %edi
	movq	_SIOCS80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movl	%ebx, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	_set_chan.cold.1
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function set_chan.cold.1
_set_chan.cold.1:                       ## @set_chan.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_chaninfo,12,2                  ## @chaninfo
	.comm	_SIOCS80211,4,2                 ## @SIOCS80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(SIOCS80211) [chan]"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_chan                       ; -- Begin function set_chan
	.p2align	2
_set_chan:                              ; @set_chan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _chaninfo@GOTPAGE
Lloh1:
	ldr	x20, [x20, _chaninfo@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x2, x20
	str	w0, [x2, #4]!
	ldr	w0, [x2, #4]
Lloh2:
	adrp	x8, _SIOCS80211@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCS80211@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	str	w19, [x20]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_set_chan.cold.1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function set_chan.cold.1
_set_chan.cold.1:                       ; @set_chan.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_chaninfo,12,2                  ; @chaninfo
	.comm	_SIOCS80211,4,2                 ; @SIOCS80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(SIOCS80211) [chan]"

.subsections_via_symbols
