	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_copy_and_insert_ds_elem
_iwl_mvm_copy_and_insert_ds_elem:       ## @iwl_mvm_copy_and_insert_ds_elem
	.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	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iwl_mvm_rrm_scan_needed
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	_iwl_mvm_copy_and_insert_ds_elem.before_ds_params(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_ieee80211_ie_split
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	leaq	(,%rbx,4), %r12
	addq	%r13, %r12
	movq	_WLAN_EID_DS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13,%rbx,4)
	movq	$1, 4(%r13,%rbx,4)
	leaq	12(,%rbx,4), %rdi
	addq	%r13, %rdi
	leaq	(%r15,%rbx,4), %rsi
	subq	%rbx, %r14
	movq	%r14, %rdx
	callq	_memcpy
	leaq	(%r12,%r14,4), %rax
	addq	$12, %rax
	jmp	LBB0_3
LBB0_1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	leaq	(,%r14,4), %rax
	addq	%r13, %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @iwl_mvm_copy_and_insert_ds_elem.before_ds_params
_iwl_mvm_copy_and_insert_ds_elem.before_ds_params:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	130                             ## 0x82
	.long	131                             ## 0x83

	.comm	_WLAN_EID_DS_PARAMS,4,2         ## @WLAN_EID_DS_PARAMS
	.no_dead_strip	_iwl_mvm_copy_and_insert_ds_elem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function iwl_mvm_copy_and_insert_ds_elem
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_iwl_mvm_copy_and_insert_ds_elem:       ; @iwl_mvm_copy_and_insert_ds_elem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_iwl_mvm_rrm_scan_needed
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _iwl_mvm_copy_and_insert_ds_elem.before_ds_params@PAGE
Lloh1:
	add	x22, x22, _iwl_mvm_copy_and_insert_ds_elem.before_ds_params@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w4, #0
	bl	_ieee80211_ie_split
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	lsl	x8, x22, #2
	add	x9, x21, x8
Lloh2:
	adrp	x10, _WLAN_EID_DS_PARAMS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WLAN_EID_DS_PARAMS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	str	w10, [x9]
	add	x21, x9, #12
Lloh5:
	adrp	x10, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	stur	d0, [x9, #4]
	add	x1, x20, x8
	sub	x19, x19, x22
	mov	x0, x21
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, x20
LBB0_3:
	mov	x2, x19
	bl	_memcpy
	add	x0, x21, x19, lsl #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_mvm_copy_and_insert_ds_elem.before_ds_params
_iwl_mvm_copy_and_insert_ds_elem.before_ds_params:
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	130                             ; 0x82
	.long	131                             ; 0x83

	.comm	_WLAN_EID_DS_PARAMS,4,2         ; @WLAN_EID_DS_PARAMS
	.no_dead_strip	_iwl_mvm_copy_and_insert_ds_elem
.subsections_via_symbols
