	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_sched_scan_add_scan_plans
_nl80211_sched_scan_add_scan_plans:     ## @nl80211_sched_scan_add_scan_plans
	.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, %r12
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r13
	movq	_NL80211_ATTR_SCHED_SCAN_PLANS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nla_nest_start
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.1:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addq	$8, %r13
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_nla_nest_end
	cmpq	$0, (%r13)
	leaq	16(%r13), %r13
	leaq	1(%rbx), %rax
	je	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jae	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %esi
	movq	%r12, %rdi
	callq	_nla_nest_start
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r14), %rcx
	jg	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	_NL80211_SCHED_SCAN_PLAN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rcx, %rdx
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	cmpq	8(%r14), %rcx
	jg	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_NL80211_SCHED_SCAN_PLAN_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rcx, %rdx
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_2
LBB0_13:
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_16:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_18:
	subl	%eax, %ebx
	cmpl	$-1, %ebx
	je	LBB0_20
## %bb.19:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_20:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nla_nest_end
	xorl	%eax, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_SCHED_SCAN_PLANS,4,2 ## @NL80211_ATTR_SCHED_SCAN_PLANS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nl80211: sched scan plan no. %u: Invalid interval: %u"

	.comm	_NL80211_SCHED_SCAN_PLAN_INTERVAL,4,2 ## @NL80211_SCHED_SCAN_PLAN_INTERVAL
L_.str.1:                               ## @.str.1
	.asciz	"nl80211: sched scan plan no. %u: Invalid number of iterations: %u"

	.comm	_NL80211_SCHED_SCAN_PLAN_ITERATIONS,4,2 ## @NL80211_SCHED_SCAN_PLAN_ITERATIONS
L_.str.2:                               ## @.str.2
	.asciz	"nl80211: All sched scan plans but the last must specify number of iterations"

	.no_dead_strip	_nl80211_sched_scan_add_scan_plans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_sched_scan_add_scan_plans
_nl80211_sched_scan_add_scan_plans:     ; @nl80211_sched_scan_add_scan_plans
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x2, #8]
Lloh0:
	adrp	x8, _NL80211_ATTR_SCHED_SCAN_PLANS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_ATTR_SCHED_SCAN_PLANS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_nest_start
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
	mov	x8, #0
	add	x25, x23, #8
Lloh3:
	adrp	x26, _NL80211_SCHED_SCAN_PLAN_INTERVAL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NL80211_SCHED_SCAN_PLAN_INTERVAL@GOTPAGEOFF]
Lloh5:
	adrp	x27, _NL80211_SCHED_SCAN_PLAN_ITERATIONS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _NL80211_SCHED_SCAN_PLAN_ITERATIONS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_nla_nest_end
	ldr	x9, [x25], #16
	add	x8, x24, #1
	cbz	x9, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	w8, [x21]
	cmp	x24, x8
	b.hs	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w24, #1
	mov	x0, x19
	bl	_nla_nest_start
	cbz	x0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x2, [x25, #-8]
	cbz	x2, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cmp	x2, x8
	b.gt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x25]
	ldr	x8, [x22, #8]
	cmp	x2, x8
	b.gt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x2, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_nla_put_u32
	cbz	x0, LBB0_2
	b	LBB0_17
LBB0_11:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	stp	x24, x2, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_12:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	stp	x24, x2, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_13:
	ldr	w8, [x21]
LBB0_14:
	sub	w8, w24, w8
	cmn	w8, #1
	b.eq	LBB0_19
; %bb.15:
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	bl	_wpa_printf
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_end
	mov	w0, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_SCHED_SCAN_PLANS,4,2 ; @NL80211_ATTR_SCHED_SCAN_PLANS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nl80211: sched scan plan no. %u: Invalid interval: %u"

	.comm	_NL80211_SCHED_SCAN_PLAN_INTERVAL,4,2 ; @NL80211_SCHED_SCAN_PLAN_INTERVAL
l_.str.1:                               ; @.str.1
	.asciz	"nl80211: sched scan plan no. %u: Invalid number of iterations: %u"

	.comm	_NL80211_SCHED_SCAN_PLAN_ITERATIONS,4,2 ; @NL80211_SCHED_SCAN_PLAN_ITERATIONS
l_.str.2:                               ; @.str.2
	.asciz	"nl80211: All sched scan plans but the last must specify number of iterations"

	.no_dead_strip	_nl80211_sched_scan_add_scan_plans
.subsections_via_symbols
