	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_ftm_cmd
_iwl_mvm_ftm_cmd:                       ## @iwl_mvm_ftm_cmd
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM@GOTPCREL(%rip), %rax
	movq	_IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r15)
	movl	28(%r12), %eax
	movl	%eax, 48(%r15)
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movl	4(%r12), %eax
	testl	%eax, %eax
	movl	$1048575, %edi                  ## imm = 0xFFFFF
	cmovnel	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	movl	32(%r15), %edi
	movl	24(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	16(%r12), %rax
	movq	24(%r15), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edx
	notl	%edx
	movl	%edx, (%rcx,%rsi,4)
	incq	%rsi
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_2
LBB0_3:
	cmpq	$0, 8(%r14)
	movl	16(%r15), %edi
	je	LBB0_9
## %bb.4:
	movl	(%r14), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	(%r12), %eax
	movl	$255, %edi
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_7
	jmp	LBB0_10
LBB0_9:
	callq	_eth_broadcast_addr
	movl	$255, %edi
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movl	(%rax), %edi
LBB0_10:
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM,4,2 ## @IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM
	.comm	_IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT,4,2 ## @IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_iwl_mvm_ftm_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_ftm_cmd
_iwl_mvm_ftm_cmd:                       ; @iwl_mvm_ftm_cmd
	.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
Lloh0:
	adrp	x8, _IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	x0, [x19, #56]
	ldr	w8, [x21, #28]
	str	w8, [x19, #48]
	ldp	w8, w9, [x21]
	str	w8, [x19]
	mov	w8, #1048575
	cmp	w9, #0
	csel	w0, w8, w9, eq
	bl	_cpu_to_le32
	str	x0, [x19, #40]
	ldr	w0, [x19, #32]
	ldr	w1, [x21, #24]
Lloh6:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	w2, [x22]
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x21, #16]
	ldr	x10, [x19, #24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	mvn	w12, w12
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x2, [x22]
	cmp	x8, x2
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w0, [x19, #16]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	w1, [x20]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	ldr	x9, [x21, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:
	bl	_eth_broadcast_addr
LBB0_9:
	mov	w0, #255
LBB0_10:
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	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
LBB0_11:
	mov	x0, x20
	bl	_iwl_mvm_vif_from_mac80211
	ldr	w0, [x0]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM,4,2 ; @IWL_TOF_INITIATOR_FLAGS_MACADDR_RANDOM
	.comm	_IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT,4,2 ; @IWL_TOF_INITIATOR_FLAGS_NON_ASAP_SUPPORT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_iwl_mvm_ftm_cmd
.subsections_via_symbols
