	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f1x_swap_interleaved_region
_f1x_swap_interleaved_region:           ## @f1x_swap_interleaved_region
	.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
	movl	%esi, %r14d
	cmpl	$16, (%rdi)
	jne	LBB0_4
## %bb.1:
	movl	4(%rdi), %eax
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.2:
	cmpl	$9, %eax
	ja	LBB0_4
## %bb.3:
	cmpl	$3, 8(%rdi)
	jl	LBB0_8
LBB0_4:
	movl	12(%rdi), %edi
	movq	_SWAP_INTLV_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_amd64_read_pci_cfg
	movl	-20(%rbp), %ecx
	testb	$1, %cl
	je	LBB0_8
## %bb.5:
	movl	%ecx, %eax
	shrl	$3, %eax
	movl	%ecx, %esi
	shrl	$11, %esi
	andl	$127, %esi
	movl	%r14d, %edx
	sarl	$27, %edx
	movl	%eax, %edi
	andl	$127, %edi
	cmpl	%edi, %edx
	setge	%dil
	cmpl	%esi, %edx
	setle	%bl
	testb	%bl, %dil
	jne	LBB0_7
## %bb.6:
	shrl	$20, %ecx
	andl	$127, %ecx
	cmpl	%ecx, %edx
	jge	LBB0_8
LBB0_7:
	shll	$27, %eax
	xorl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWAP_INTLV_REG,4,2             ## @SWAP_INTLV_REG
	.no_dead_strip	_f1x_swap_interleaved_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f1x_swap_interleaved_region
_f1x_swap_interleaved_region:           ; @f1x_swap_interleaved_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	w8, [x0]
	cmp	w8, #16
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.2:
	cmp	w8, #9
	b.hi	LBB0_4
; %bb.3:
	ldr	w8, [x0, #8]
	cmp	w8, #3
	b.lt	LBB0_7
LBB0_4:
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _SWAP_INTLV_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWAP_INTLV_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_amd64_read_pci_cfg
	ldr	w8, [sp, #12]
	tbz	w8, #0, LBB0_7
; %bb.5:
	ubfx	w9, w8, #11, #7
	ubfx	w10, w8, #20, #7
	asr	w11, w19, #27
	ubfx	w12, w8, #3, #7
	cmp	w11, w9
	ccmp	w11, w12, #8, le
	ccmp	w11, w10, #8, lt
	b.ge	LBB0_7
; %bb.6:
	lsr	w8, w8, #3
	eor	w19, w19, w8, lsl #27
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SWAP_INTLV_REG,4,2             ; @SWAP_INTLV_REG
	.no_dead_strip	_f1x_swap_interleaved_region
.subsections_via_symbols
