	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma220_probe
_bma220_probe:                          ## @bma220_probe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, (%rax)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	leaq	8(%r15), %rdi
	callq	_mutex_init
	movq	%r14, 32(%rbx)
	movq	_bma220_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_BMA220_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_bma220_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%rbx)
	movq	_bma220_accel_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	(%r15), %rdi
	callq	_bma220_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bma220_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_2
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bma220_deinit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio allocation failed!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bma220_info,4,2                ## @bma220_info
	.comm	_BMA220_DEVICE_NAME,4,2         ## @BMA220_DEVICE_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_bma220_channels,4,2            ## @bma220_channels
	.comm	_bma220_accel_scan_masks,4,2    ## @bma220_accel_scan_masks
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_bma220_trigger_handler,4,2     ## @bma220_trigger_handler
L_.str.1:                               ## @.str.1
	.asciz	"iio triggered buffer setup failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"iio_device_register failed\n"

	.no_dead_strip	_bma220_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma220_probe
_bma220_probe:                          ; @bma220_probe
	.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	x19, x0
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	add	x0, x21, #8
	bl	_mutex_init
Lloh0:
	adrp	x8, _bma220_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bma220_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
Lloh2:
	adrp	x8, _BMA220_DEVICE_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMA220_DEVICE_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh5:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _bma220_channels@GOTPAGE
Lloh9:
	ldr	x9, [x9, _bma220_channels@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #8]
	bl	_ARRAY_SIZE
Lloh11:
	adrp	x8, _bma220_accel_scan_masks@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bma220_accel_scan_masks@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [x20]
	ldr	x0, [x21]
	bl	_bma220_init
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh14:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh15:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _bma220_trigger_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bma220_trigger_handler@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_iio_triggered_buffer_cleanup
LBB0_9:
	mov	x0, x19
	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
	b	_bma220_deinit
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio allocation failed!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bma220_info,4,2                ; @bma220_info
	.comm	_BMA220_DEVICE_NAME,4,2         ; @BMA220_DEVICE_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_bma220_channels,4,2            ; @bma220_channels
	.comm	_bma220_accel_scan_masks,4,2    ; @bma220_accel_scan_masks
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_bma220_trigger_handler,4,2     ; @bma220_trigger_handler
l_.str.1:                               ; @.str.1
	.asciz	"iio triggered buffer setup failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"iio_device_register failed\n"

	.no_dead_strip	_bma220_probe
.subsections_via_symbols
