	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bmc150_accel_interrupts_setup
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_2:
	.quad	16                              ## 0x10
	.quad	16                              ## 0x10
LCPI0_3:
	.quad	24                              ## 0x18
	.quad	24                              ## 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bmc150_accel_interrupts_setup:         ## @bmc150_accel_interrupts_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BMC150_ACCEL_INTERRUPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.1:
	movq	(%rsi), %rcx
	cmpl	$4, %eax
	jb	LBB0_2
## %bb.3:
	movq	_bmc150_accel_interrupts@GOTPCREL(%rip), %r8
	leaq	8(%r8), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_6
## %bb.4:
	leaq	(%rcx,%rax,8), %rdx
	cmpq	_bmc150_accel_interrupts@GOTPCREL(%rip), %rdx
	jbe	LBB0_6
LBB0_2:
	xorl	%r10d, %r10d
LBB0_12:
	movq	%r10, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %r11
	andq	$3, %r11
	je	LBB0_16
## %bb.13:
	leaq	(,%r10,4), %rdx
	negq	%r11
	xorl	%esi, %esi
	movq	_bmc150_accel_interrupts@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rdi
	addq	%rdx, %rdi
	movq	%rdi, (%rcx,%rdx,2)
	decq	%rsi
	addq	$4, %rdx
	cmpq	%rsi, %r11
	jne	LBB0_14
## %bb.15:
	subq	%rsi, %r10
LBB0_16:
	cmpq	$3, %r8
	jb	LBB0_19
## %bb.17:
	subq	%r10, %rax
	leaq	8(,%r10,4), %rdx
	movq	_bmc150_accel_interrupts@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	addq	%rdx, %rdi
	addq	$-8, %rdi
	movq	%rdi, -16(%rcx,%rdx,2)
	movq	(%rsi), %rdi
	addq	%rdx, %rdi
	addq	$-4, %rdi
	movq	%rdi, -8(%rcx,%rdx,2)
	movq	(%rsi), %rdi
	addq	%rdx, %rdi
	movq	%rdi, (%rcx,%rdx,2)
	movq	(%rsi), %rdi
	addq	%rdx, %rdi
	addq	$4, %rdi
	movq	%rdi, 8(%rcx,%rdx,2)
	addq	$16, %rdx
	addq	$-4, %rax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_6:
	movl	%eax, %r10d
	andl	$-4, %r10d
	leaq	-4(%r10), %rdx
	movq	%rdx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.7:
	movq	%r9, %rdi
	andq	$-2, %rdi
	movq	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [8,8]
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [16,16]
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [24,24]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	psllq	$2, %xmm5
	paddq	%xmm1, %xmm5
	movdqa	%xmm5, %xmm6
	paddq	%xmm2, %xmm6
	movdqu	%xmm5, (%rcx,%rsi,8)
	movdqu	%xmm6, 16(%rcx,%rsi,8)
	movdqa	%xmm5, %xmm6
	paddq	%xmm3, %xmm6
	paddq	%xmm4, %xmm5
	movdqu	%xmm6, 32(%rcx,%rsi,8)
	movdqu	%xmm5, 48(%rcx,%rsi,8)
	addq	$8, %rsi
	paddq	%xmm2, %xmm0
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movq	(%r8), %xmm1                    ## xmm1 = mem[0],zero
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psllq	$2, %xmm0
	paddq	%xmm1, %xmm0
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [8,8]
	paddq	%xmm0, %xmm1
	movdqu	%xmm0, (%rcx,%rsi,8)
	movdqu	%xmm1, 16(%rcx,%rsi,8)
LBB0_11:
	cmpq	%rax, %r10
	jne	LBB0_12
LBB0_19:
	popq	%rbp
	retq
LBB0_20:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_INTERRUPTS,4,2    ## @BMC150_ACCEL_INTERRUPTS
	.comm	_bmc150_accel_interrupts,8,3    ## @bmc150_accel_interrupts
	.no_dead_strip	_bmc150_accel_interrupts_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bmc150_accel_interrupts_setup
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bmc150_accel_interrupts_setup:         ; @bmc150_accel_interrupts_setup
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BMC150_ACCEL_INTERRUPTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_ACCEL_INTERRUPTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	ldr	x10, [x1]
Lloh3:
	adrp	x8, _bmc150_accel_interrupts@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bmc150_accel_interrupts@GOTPAGEOFF]
	cmp	w9, #8
	b.lo	LBB0_6
; %bb.2:
	add	x11, x10, x9, lsl #3
	add	x12, x8, #8
	cmp	x10, x12
	ccmp	x11, x8, #0, lo
	b.hi	LBB0_6
; %bb.3:
	and	x11, x9, #0xfffffff8
	ld1r.2d	{ v0 }, [x8]
Lloh5:
	adrp	x12, lCPI0_0@PAGE
Lloh6:
	ldr	q1, [x12, lCPI0_0@PAGEOFF]
	add	x12, x10, #32
	mov	w13, #24
	dup.2d	v2, x13
	mov	w13, #16
	dup.2d	v3, x13
	mov	w13, #8
	dup.2d	v4, x13
	mov	x13, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	shl.2d	v5, v1, #2
	add.2d	v6, v0, v5
	add.2d	v5, v5, v0
	add.2d	v7, v5, v4
	add.2d	v16, v5, v3
	add.2d	v5, v5, v2
	stp	q6, q7, [x12, #-32]
	stp	q16, q5, [x12], #64
	add.2d	v1, v1, v4
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x11, #0
LBB0_7:
	lsl	x12, x11, #2
	sub	x9, x9, x11
	add	x10, x10, x11, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	add	x11, x11, x12
	str	x11, [x10], #8
	add	x12, x12, #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_INTERRUPTS,4,2    ; @BMC150_ACCEL_INTERRUPTS
	.comm	_bmc150_accel_interrupts,8,3    ; @bmc150_accel_interrupts
	.no_dead_strip	_bmc150_accel_interrupts_setup
.subsections_via_symbols
