	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma180_probe
_bma180_probe:                          ## @bma180_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r13, 24(%r15)
	cmpq	$0, 8(%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_4:
	movl	(%rbx), %eax
LBB0_5:
	movq	_bma180_part_info@GOTPCREL(%rip), %rcx
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	shlq	$3, %rax
	addq	(%rcx), %rax
	movq	%rax, (%r15)
	leaq	20(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_iio_read_mount_matrix
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.6:
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r14, 40(%r12)
	movq	(%r15), %rax
	movl	20(%rax), %ecx
	movl	%ecx, 32(%r12)
	movl	16(%rax), %eax
	movl	%eax, 28(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	%esi, 8(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_bma180_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	cmpq	$0, (%r13)
	jle	LBB0_14
## %bb.9:
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_iio_trigger_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	(%r13), %rsi
	movq	_iio_trigger_generic_data_rdy_poll@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%r14, %rdi
	movq	%rax, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_13:
	movq	8(%r15), %rdi
	movq	%r14, 8(%rdi)
	movq	_bma180_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r12, %rsi
	callq	_iio_trigger_set_drvdata
	movq	8(%r15), %rdi
	callq	_iio_trigger_get
	movl	%eax, (%r12)
	movq	8(%r15), %rdi
	callq	_iio_trigger_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_14:
	movq	_bma180_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	%r12, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_22
## %bb.17:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_18
LBB0_15:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_18:
	movl	%r13d, %ebx
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_iio_trigger_unregister
LBB0_20:
	movq	8(%r15), %rdi
	callq	_iio_trigger_free
LBB0_21:
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bma180_part_info,8,3           ## @bma180_part_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mount-matrix"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_bma180_info,4,2                ## @bma180_info
L_.str.1:                               ## @.str.1
	.asciz	"%s-dev%d"

	.comm	_iio_trigger_generic_data_rdy_poll,4,2 ## @iio_trigger_generic_data_rdy_poll
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
L_.str.2:                               ## @.str.2
	.asciz	"bma180_event"

L_.str.3:                               ## @.str.3
	.asciz	"unable to request IRQ\n"

	.comm	_bma180_trigger_ops,4,2         ## @bma180_trigger_ops
	.comm	_bma180_trigger_handler,4,2     ## @bma180_trigger_handler
L_.str.4:                               ## @.str.4
	.asciz	"unable to setup iio triggered buffer\n"

L_.str.5:                               ## @.str.5
	.asciz	"unable to register iio device\n"

	.no_dead_strip	_bma180_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma180_probe
_bma180_probe:                          ; @bma180_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x24, x1
	mov	x22, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x22, [x19, #24]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_of_device_get_match_data
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_23
LBB0_4:
	ldr	w0, [x24]
LBB0_5:
Lloh3:
	adrp	x8, _bma180_part_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bma180_part_info@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #24
	umaddl	x8, w0, w9, x8
	mov	x2, x19
	str	x8, [x2], #20
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_iio_read_mount_matrix
	mov	x23, x0
	cbnz	w0, LBB0_23
; %bb.6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_11
; %bb.7:
	add	x0, x19, #16
	bl	_mutex_init
	str	x20, [x21, #40]
	ldr	x8, [x19]
	ldr	d0, [x8, #16]
	stur	d0, [x21, #28]
	ldr	w1, [x24, #4]
	str	w1, [x21, #8]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh11:
	adrp	x8, _bma180_info@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bma180_info@GOTPAGEOFF]
	str	x8, [x21, #16]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.8:
	ldr	w2, [x21, #4]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iio_trigger_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x5, x0
	ldr	x1, [x22]
Lloh15:
	adrp	x8, _iio_trigger_generic_data_rdy_poll@GOTPAGE
Lloh16:
	ldr	x8, [x8, _iio_trigger_generic_data_rdy_poll@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x4, l_.str.2@PAGE
Lloh22:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_13
; %bb.10:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_21
LBB0_11:
	mov	x23, x0
	b	LBB0_22
LBB0_12:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_13:
	ldr	x0, [x19, #8]
Lloh28:
	adrp	x8, _bma180_trigger_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _bma180_trigger_ops@GOTPAGEOFF]
	stp	x8, x20, [x0]
	mov	x1, x21
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x19, #8]
	bl	_iio_trigger_get
	str	w0, [x21]
	ldr	x0, [x19, #8]
	bl	_iio_trigger_register
	mov	x23, x0
	cbnz	w0, LBB0_21
LBB0_14:
Lloh30:
	adrp	x8, _bma180_trigger_handler@GOTPAGE
Lloh31:
	ldr	x8, [x8, _bma180_trigger_handler@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_17
; %bb.15:
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	w23, #0
	b	LBB0_23
LBB0_17:
	mov	x23, x0
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_19
LBB0_18:
	mov	x23, x0
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
LBB0_19:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_iio_trigger_unregister
LBB0_21:
	ldr	x0, [x19, #8]
	bl	_iio_trigger_free
LBB0_22:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_23:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bma180_part_info,8,3           ; @bma180_part_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mount-matrix"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_bma180_info,4,2                ; @bma180_info
l_.str.1:                               ; @.str.1
	.asciz	"%s-dev%d"

	.comm	_iio_trigger_generic_data_rdy_poll,4,2 ; @iio_trigger_generic_data_rdy_poll
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
l_.str.2:                               ; @.str.2
	.asciz	"bma180_event"

l_.str.3:                               ; @.str.3
	.asciz	"unable to request IRQ\n"

	.comm	_bma180_trigger_ops,4,2         ; @bma180_trigger_ops
	.comm	_bma180_trigger_handler,4,2     ; @bma180_trigger_handler
l_.str.4:                               ; @.str.4
	.asciz	"unable to setup iio triggered buffer\n"

l_.str.5:                               ; @.str.5
	.asciz	"unable to register iio device\n"

	.no_dead_strip	_bma180_probe
.subsections_via_symbols
