	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_scan_result
_get_scan_result:                       ## @get_scan_result
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_scan_space
	cmpl	(%rbx), %eax
	jg	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	cmpl	$65536, %eax                    ## imm = 0x10000
	setl	%al
	movslq	-44(%rbp), %rsi
	cmpq	$65536, %rsi                    ## imm = 0x10000
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_KASSERT
	movl	%r15d, (%rbx)
	movl	$64, 4(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	64(%r13), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 60(%rbx)
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	60(%r13), %eax
	movl	%eax, 52(%rbx)
	movups	44(%r13), %xmm0
	movups	%xmm0, 36(%rbx)
	movl	32(%rbx), %edi
	movl	40(%r13), %esi
	callq	_IEEE80211_ADDR_COPY
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movq	_IEEE80211_RATE_MAXSIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_min
	movl	%eax, %r12d
	movq	24(%rbx), %rdi
	movq	8(%r13), %rsi
	addq	$8, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	16(%r13), %rax
	movl	4(%rax), %edi
	movq	(%r14), %rsi
	movslq	%r12d, %r14
	subq	%r14, %rsi
	callq	_min
	movl	%eax, %r12d
	leaq	(,%r14,4), %rdi
	addq	24(%rbx), %rdi
	movq	16(%r13), %rsi
	addq	$8, %rsi
	movl	%eax, %edx
	callq	_memcpy
	addl	%r12d, %r14d
	movl	%r14d, 12(%rbx)
	movq	(%r13), %rsi
	movl	4(%rsi), %edx
	movl	%edx, 16(%rbx)
	movslq	4(%rbx), %rax
	leaq	(%rbx,%rax,4), %r12
	addq	$8, %rsi
	movq	%r12, %rdi
	callq	_memcpy
	movslq	16(%rbx), %rax
	leaq	(%r12,%rax,4), %r12
	movq	24(%r13), %rsi
	movl	4(%rsi), %edx
	movl	%edx, 20(%rbx)
	addq	$8, %rsi
	movq	%r12, %rdi
	callq	_memcpy
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movslq	20(%rbx), %rax
	leaq	(%r12,%rax,4), %rdi
	movq	32(%r13), %rsi
	callq	_memcpy
LBB0_3:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	%r15d, (%rcx)
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 8(%rcx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATE_MAXSIZE,8,3     ## @IEEE80211_RATE_MAXSIZE
	.no_dead_strip	_get_scan_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_scan_result
_get_scan_result:                       ; @get_scan_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x21
	bl	_scan_space
	ldr	w8, [x19]
	cmp	w0, w8
	b.gt	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x24, [x19, #8]
	cmp	w0, #16, lsl #12                ; =65536
	ldrsw	x1, [sp, #12]
	mov	w8, #65536
	ccmp	x1, x8, #0, lt
	cset	w0, lt
	bl	_KASSERT
	mov	w8, #64
	stp	w20, w8, [x24]
	ldr	w8, [sp, #12]
	str	w8, [x24, #8]
	ldr	x8, [x21, #64]
	ldr	d0, [x8]
	str	d0, [x24, #56]
	ldr	w8, [x21, #60]
	str	w8, [x24, #52]
	ldur	q0, [x21, #44]
	stur	q0, [x24, #36]
	ldr	w0, [x24, #32]
	ldr	w1, [x21, #40]
	bl	_IEEE80211_ADDR_COPY
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x23, _IEEE80211_RATE_MAXSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IEEE80211_RATE_MAXSIZE@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_min
	mov	x22, x0
	ldr	x0, [x24, #24]
	ldr	x8, [x21, #8]
	add	x1, x8, #8
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #4]
	ldr	x8, [x23]
	sub	x1, x8, w22, sxtw
	bl	_min
	mov	x23, x0
	ldr	x8, [x24, #24]
	add	x0, x8, w22, sxtw #2
	ldr	x8, [x21, #16]
	add	x1, x8, #8
	mov	x2, x23
	bl	_memcpy
	add	w8, w23, w22
	str	w8, [x24, #12]
	ldr	x8, [x21]
	ldr	w2, [x8, #4]
	str	w2, [x24, #16]
	ldrsw	x9, [x24, #4]
	add	x22, x24, x9, lsl #2
	add	x1, x8, #8
	mov	x0, x22
	bl	_memcpy
	ldrsw	x8, [x24, #16]
	add	x22, x22, x8, lsl #2
	ldr	x8, [x21, #24]
	ldr	w2, [x8, #4]
	str	w2, [x24, #20]
	add	x1, x8, #8
	mov	x0, x22
	bl	_memcpy
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_3
; %bb.2:
	ldrsw	x8, [x24, #20]
	add	x0, x22, x8, lsl #2
	ldr	x1, [x21, #32]
	bl	_memcpy
LBB0_3:
	ldr	w8, [x19]
	sub	w8, w8, w20
	str	w8, [x19]
	add	x8, x24, w20, sxtw #2
	str	x8, [x19, #8]
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATE_MAXSIZE,8,3     ; @IEEE80211_RATE_MAXSIZE
	.no_dead_strip	_get_scan_result
.subsections_via_symbols
