	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_survey_stats
_get_survey_stats:                      ## @get_survey_stats
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r15d
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_HAL_DIAG_CHANSURVEY@GOTPCREL(%rip), %rax
	movq	_ATH_DIAG_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movl	$4, -68(%rbp)
	movq	%rbx, -56(%rbp)
	movl	-64(%rbp), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_ioctl
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jns	LBB0_2
## %bb.1:
	movl	-64(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	xorl	%eax, %eax
LBB0_2:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DIAG_CHANSURVEY,4,2        ## @HAL_DIAG_CHANSURVEY
	.comm	_ATH_DIAG_OUT,4,2               ## @ATH_DIAG_OUT
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl: %s"

	.no_dead_strip	_get_survey_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_survey_stats
_get_survey_stats:                      ; @get_survey_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _HAL_DIAG_CHANSURVEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HAL_DIAG_CHANSURVEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATH_DIAG_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH_DIAG_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	xzr, xzr, [sp, #32]
	mov	w9, #4
	stp	w8, w9, [sp, #8]
	str	x19, [sp, #24]
	ldr	w0, [sp, #16]
	mov	x1, x20
	mov	w2, #4
	bl	_strncpy
Lloh6:
	adrp	x8, _SIOCGATHDIAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGATHDIAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w2, [sp, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DIAG_CHANSURVEY,4,2        ; @HAL_DIAG_CHANSURVEY
	.comm	_ATH_DIAG_OUT,4,2               ; @ATH_DIAG_OUT
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl: %s"

	.no_dead_strip	_get_survey_stats
.subsections_via_symbols
