	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_triggers_setup
_bmc150_accel_triggers_setup:           ## @bmc150_accel_triggers_setup
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %edi
	callq	_regmap_get_device
	movq	_BMC150_ACCEL_TRIGGERS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_11
## %bb.1:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_bmc150_accel_triggers@GOTPCREL(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r15
	movq	(%rdi), %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rcx,%rbx), %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movq	%rdi, %rbx
	movq	%r13, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, (%r15,%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r14), %rsi
	movq	%r13, 8(%rax)
	movq	_bmc150_accel_trigger_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rcx
	movq	%rbx, %r13
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rcx,%rbx), %ecx
	movl	%ecx, 24(%r15,%r14)
	movq	%r12, 16(%r15,%r14)
	movq	(%r13), %rcx
	movl	(%rcx,%rbx), %ecx
	movl	%ecx, 8(%r15,%r14)
	movq	%rax, %rdi
	callq	_iio_trigger_set_drvdata
	movq	(%r15,%r14), %rdi
	callq	_iio_trigger_register
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_BMC150_ACCEL_TRIGGERS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %r14
	addq	$12, %rbx
	cmpq	%rax, %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_2
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.8:
	negl	%r12d
	jmp	LBB0_10
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %r12d
LBB0_10:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	decl	%esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_bmc150_accel_unregister_triggers
LBB0_12:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_ACCEL_TRIGGERS,4,2      ## @BMC150_ACCEL_TRIGGERS
	.comm	_bmc150_accel_triggers,8,3      ## @bmc150_accel_triggers
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bmc150_accel_trigger_ops,4,2   ## @bmc150_accel_trigger_ops
	.no_dead_strip	_bmc150_accel_triggers_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_triggers_setup
_bmc150_accel_triggers_setup:           ; @bmc150_accel_triggers_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_regmap_get_device
Lloh0:
	adrp	x24, _BMC150_ACCEL_TRIGGERS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BMC150_ACCEL_TRIGGERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x25, #0
	mov	x26, #0
	mov	x23, #0
Lloh2:
	adrp	x27, _bmc150_accel_triggers@GOTPAGE
Lloh3:
	ldr	x27, [x27, _bmc150_accel_triggers@GOTPAGEOFF]
Lloh4:
	adrp	x28, _bmc150_accel_trigger_ops@GOTPAGE
Lloh5:
	ldr	x28, [x28, _bmc150_accel_trigger_ops@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x22, x8, x26
	ldr	x8, [x27]
	add	x8, x8, x25
	ldr	w1, [x8, #8]
	ldp	w3, w2, [x20]
	mov	x0, x21
	bl	_devm_iio_trigger_alloc
	str	x0, [x22]
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	x28, x21, [x0]
	ldr	x8, [x27]
	add	x8, x8, x25
	ldr	w8, [x8, #4]
	str	w8, [x22, #24]
	str	x19, [x22, #16]
	ldr	x8, [x27]
	ldr	w8, [x8, x25]
	str	w8, [x22, #8]
	mov	x1, x22
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x22]
	bl	_iio_trigger_register
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x24]
	add	x26, x26, #32
	add	x25, x25, #12
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.6:
	neg	w22, w8
	b	LBB0_9
LBB0_7:
	mov	w22, #0
	b	LBB0_10
LBB0_8:
	mov	x22, x0
LBB0_9:
	sub	w1, w23, #1
	mov	x0, x19
	bl	_bmc150_accel_unregister_triggers
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_ACCEL_TRIGGERS,4,2      ; @BMC150_ACCEL_TRIGGERS
	.comm	_bmc150_accel_triggers,8,3      ; @bmc150_accel_triggers
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bmc150_accel_trigger_ops,4,2   ; @bmc150_accel_trigger_ops
	.no_dead_strip	_bmc150_accel_triggers_setup
.subsections_via_symbols
