	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_flip_address
_iwl_mvm_flip_address:                  ## @iwl_mvm_flip_address
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.1:
	cmpl	$8, %r14d
	jae	LBB0_3
## %bb.2:
	xorl	%r9d, %r9d
LBB0_12:
	movq	%r9, %rcx
	notq	%rcx
	testb	$1, %r14b
	je	LBB0_14
## %bb.13:
	movl	%r9d, %eax
	notl	%eax
	addl	%r14d, %eax
	cltq
	movl	(%rbx,%rax,4), %eax
	movl	%eax, (%rsi,%r9,4)
	orq	$1, %r9
LBB0_14:
	addq	%r14, %rcx
	je	LBB0_17
## %bb.15:
	movl	%r14d, %eax
	subq	%r9, %r14
	movl	%r9d, %ecx
	notl	%ecx
	addl	%eax, %ecx
	leaq	(%rsi,%r9,4), %rax
	addq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rcx
	movl	(%rbx,%rcx,4), %edi
	movl	%edi, -4(%rax,%rdx,4)
	leal	-1(%rcx), %edi
	movslq	%edi, %rdi
	movl	(%rbx,%rdi,4), %edi
	movl	%edi, (%rax,%rdx,4)
	addq	$2, %rdx
	addl	$-2, %ecx
	cmpq	%rdx, %r14
	jne	LBB0_16
	jmp	LBB0_17
LBB0_3:
	leaq	-1(%r14), %rcx
	leal	-1(%r14), %edx
	movl	%edx, %edi
	subl	%ecx, %edi
	xorl	%r9d, %r9d
	cmpl	%edx, %edi
	jg	LBB0_12
## %bb.4:
	shrq	$32, %rcx
	jne	LBB0_12
## %bb.5:
	movl	%r14d, %r9d
	andl	$-8, %r9d
	leaq	-8(%r9), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r8, %rdi
	andq	$-2, %rdi
	leal	-9(%r14), %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	8(%rdx), %eax
	cltq
	movdqu	-28(%rbx,%rax,4), %xmm0
	movdqu	-12(%rbx,%rax,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqa	%xmm1, (%rsi,%rcx,4)
	movdqa	%xmm0, 16(%rsi,%rcx,4)
	movslq	%edx, %rdx
	movdqu	-28(%rbx,%rdx,4), %xmm0
	movdqu	-12(%rbx,%rdx,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqa	%xmm1, 32(%rsi,%rcx,4)
	movdqa	%xmm0, 48(%rsi,%rcx,4)
	addq	$16, %rcx
	addl	$-16, %edx
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movl	%ecx, %eax
	notl	%eax
	addl	%r14d, %eax
	cltq
	movdqu	-28(%rbx,%rax,4), %xmm0
	movdqu	-12(%rbx,%rax,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqa	%xmm1, (%rsi,%rcx,4)
	movdqa	%xmm0, 16(%rsi,%rcx,4)
LBB0_11:
	cmpq	%r14, %r9
	jne	LBB0_12
LBB0_17:
	movq	%rbx, %rdi
	callq	_ether_addr_copy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%ecx, %ecx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_iwl_mvm_flip_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_flip_address
_iwl_mvm_flip_address:                  ; @iwl_mvm_flip_address
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x1, x9, x8
	mov	sp, x1
	cmp	w12, #1
	b.lt	LBB0_6
; %bb.1:
	cmp	w12, #16
	b.lo	LBB0_3
; %bb.2:
	sub	x9, x12, #1
	sub	w8, w12, #1
	sub	w10, w8, w9
	cmp	w10, w8
	lsr	x8, x9, #32
	ccmp	x8, #0, #0, le
	b.eq	LBB0_8
LBB0_3:
	mov	x8, #0
LBB0_4:
	mvn	w9, w8
	add	w9, w9, w12
	add	x10, x1, x8, lsl #2
	sub	x8, x12, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x0, w9, sxtw #2]
	str	w11, [x10], #4
	sub	w9, w9, #1
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	bl	_ether_addr_copy
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.7:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	and	x8, x12, #0xfffffff0
	add	x10, x1, #32
	mov	x11, x8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x0, w9, sxtw #2
	ldur	q0, [x13, #-12]
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	ldur	q1, [x13, #-28]
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	ldur	q2, [x13, #-44]
	rev64.4s	v2, v2
	ext.16b	v2, v2, v2, #8
	ldur	q3, [x13, #-60]
	rev64.4s	v3, v3
	ext.16b	v3, v3, v3, #8
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	sub	w9, w9, #16
	sub	x11, x11, #16
	cbnz	x11, LBB0_9
; %bb.10:
	cmp	x8, x12
	b.eq	LBB0_6
	b	LBB0_4
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_iwl_mvm_flip_address
.subsections_via_symbols
