	.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
	movl	%edi, %r14d
	movq	_chaninfo@GOTPCREL(%rip), %rbx
	movl	%edi, 8(%rbx)
	leaq	8(%rbx), %rdx
	movq	_ioctl_s@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIOCS80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_die
LBB0_2:
	movl	%r14d, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_die
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_display_chan                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_chaninfo,12,2                  ## @chaninfo
	.comm	_ioctl_s,4,2                    ## @ioctl_s
	.comm	_SIOCS80211,4,2                 ## @SIOCS80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(SIOCS80211) [chan]"

L_.str.1:                               ## @.str.1
	.asciz	"gettimeofday()"

.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
	mov	x20, x0
Lloh0:
	adrp	x19, _chaninfo@GOTPAGE
Lloh1:
	ldr	x19, [x19, _chaninfo@GOTPAGEOFF]
	mov	x2, x19
	str	w0, [x2, #8]!
Lloh2:
	adrp	x8, _ioctl_s@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ioctl_s@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _SIOCS80211@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIOCS80211@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_die
LBB0_2:
	str	w20, [x19], #4
	mov	x0, x19
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_die
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_display_chan
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_chaninfo,12,2                  ; @chaninfo
	.comm	_ioctl_s,4,2                    ; @ioctl_s
	.comm	_SIOCS80211,4,2                 ; @SIOCS80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(SIOCS80211) [chan]"

l_.str.1:                               ; @.str.1
	.asciz	"gettimeofday()"

.subsections_via_symbols
