	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_add_scan_req
_nl80211_add_scan_req:                  ## @nl80211_add_scan_req
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rsi), %r13
	movq	%rsi, %rdi
	callq	_lockdep_assert_held
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_WARN_ON
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	_NL80211_ATTR_SCAN_SSIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nla_nest_start
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.3:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movl	(%rax,%r15), %edx
	movq	-8(%rax,%r15), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nla_put
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nla_nest_end
	movq	_NL80211_ATTR_SCAN_FREQUENCIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nla_nest_start
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r15
	cmpl	$0, 4(%r13)
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_nla_nest_end
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movq	_NL80211_ATTR_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r13), %edx
	movq	%r12, %rdi
	callq	_nla_put
	testq	%rax, %rax
	je	LBB0_14
LBB0_6:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movq	_NL80211_ATTR_SCAN_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nla_put_u32
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_SCAN_SSIDS,4,2    ## @NL80211_ATTR_SCAN_SSIDS
	.comm	_NL80211_ATTR_SCAN_FREQUENCIES,4,2 ## @NL80211_ATTR_SCAN_FREQUENCIES
	.comm	_NL80211_ATTR_IE,4,2            ## @NL80211_ATTR_IE
	.comm	_NL80211_ATTR_SCAN_FLAGS,4,2    ## @NL80211_ATTR_SCAN_FLAGS
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_nl80211_add_scan_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_add_scan_req
_nl80211_add_scan_req:                  ; @nl80211_add_scan_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x22, [x1, #8]
	mov	x0, x1
	bl	_lockdep_assert_held
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_15
LBB0_2:
Lloh0:
	adrp	x8, _NL80211_ATTR_SCAN_SSIDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_ATTR_SCAN_SSIDS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_nest_start
	cbz	x0, LBB0_14
; %bb.3:
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #40]
	add	x8, x8, x23
	ldr	w2, [x8, #8]
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_nla_put
	cbnz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_end
Lloh3:
	adrp	x8, _NL80211_ATTR_SCAN_FREQUENCIES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_ATTR_SCAN_FREQUENCIES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_nest_start
	cbz	x0, LBB0_14
; %bb.8:
	mov	x20, x0
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #32]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_nla_put_u32
	cbnz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22, #4]
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_end
	ldr	x3, [x22, #16]
	cbz	x3, LBB0_16
; %bb.13:
Lloh6:
	adrp	x8, _NL80211_ATTR_IE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_ATTR_IE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x22, #24]
	mov	x0, x19
	bl	_nla_put
	cbz	x0, LBB0_16
LBB0_14:
Lloh9:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x2, [x22, #8]
	cbz	x2, LBB0_1
; %bb.17:
Lloh12:
	adrp	x8, _NL80211_ATTR_SCAN_FLAGS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_ATTR_SCAN_FLAGS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_u32
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_SCAN_SSIDS,4,2    ; @NL80211_ATTR_SCAN_SSIDS
	.comm	_NL80211_ATTR_SCAN_FREQUENCIES,4,2 ; @NL80211_ATTR_SCAN_FREQUENCIES
	.comm	_NL80211_ATTR_IE,4,2            ; @NL80211_ATTR_IE
	.comm	_NL80211_ATTR_SCAN_FLAGS,4,2    ; @NL80211_ATTR_SCAN_FLAGS
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_nl80211_add_scan_req
.subsections_via_symbols
