	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bmg160_core_probe              ## -- Begin function bmg160_core_probe
	.p2align	4, 0x90
_bmg160_core_probe:                     ## @bmg160_core_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movl	%r14d, (%r13)
	movq	%r12, 32(%r13)
	leaq	28(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_iio_read_mount_matrix
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.3:
	movq	%r13, %rdi
	callq	_bmg160_chip_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	movq	%r13, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_bmg160_match_acpi_device
	movq	%rax, %rbx
LBB0_7:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, 40(%r12)
	movq	_bmg160_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 36(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 32(%r12)
	movq	%rbx, (%r12)
	movq	_bmg160_accel_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_bmg160_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	%r14, %r13
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_14
## %bb.8:
	movq	_bmg160_data_rdy_trig_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bmg160_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_BMG160_IRQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movq	%r15, %rdi
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	%r13, %r14
	movq	(%r12), %rdx
	movl	8(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	(%r12), %rdx
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	16(%r14), %rdi
	movq	%r15, 8(%rdi)
	movq	_bmg160_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r12, %rsi
	callq	_iio_trigger_set_drvdata
	movq	16(%r14), %rdi
	callq	_iio_trigger_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.12:
	movq	8(%r14), %rdi
	movq	%r15, 8(%rdi)
	movq	_bmg160_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r12, %rsi
	callq	_iio_trigger_set_drvdata
	movq	8(%r14), %rdi
	callq	_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	$0, 8(%r13)
	jmp	LBB0_20
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_14:
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bmg160_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bmg160_buffer_setup_ops@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_20
LBB0_15:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_20:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_iio_trigger_unregister
LBB0_22:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_iio_trigger_unregister
	jmp	LBB0_24
LBB0_17:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	_BMG160_AUTO_SUSPEND_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r15, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_24
## %bb.18:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mount-matrix"

	.comm	_bmg160_channels,4,2            ## @bmg160_channels
	.comm	_bmg160_accel_scan_masks,4,2    ## @bmg160_accel_scan_masks
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_bmg160_info,4,2                ## @bmg160_info
	.comm	_bmg160_data_rdy_trig_poll,4,2  ## @bmg160_data_rdy_trig_poll
	.comm	_bmg160_event_handler,4,2       ## @bmg160_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_BMG160_IRQ_NAME,4,2            ## @BMG160_IRQ_NAME
L_.str.1:                               ## @.str.1
	.asciz	"%s-dev%d"

L_.str.2:                               ## @.str.2
	.asciz	"%s-any-motion-dev%d"

	.comm	_bmg160_trigger_ops,4,2         ## @bmg160_trigger_ops
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_bmg160_trigger_handler,4,2     ## @bmg160_trigger_handler
	.comm	_bmg160_buffer_setup_ops,4,2    ## @bmg160_buffer_setup_ops
L_.str.3:                               ## @.str.3
	.asciz	"iio triggered buffer setup failed\n"

	.comm	_BMG160_AUTO_SUSPEND_DELAY_MS,4,2 ## @BMG160_AUTO_SUSPEND_DELAY_MS
L_.str.4:                               ## @.str.4
	.asciz	"unable to register iio device\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bmg160_core_probe              ; -- Begin function bmg160_core_probe
	.p2align	2
_bmg160_core_probe:                     ; @bmg160_core_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	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_dev_set_drvdata
	str	w24, [x19]
	str	x22, [x19, #32]
	add	x2, x19, #28
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_iio_read_mount_matrix
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_bmg160_chip_init
	tbnz	w0, #31, LBB0_14
; %bb.3:
	add	x0, x19, #24
	bl	_mutex_init
	mov	x0, x20
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_bmg160_match_acpi_device
	mov	x23, x0
LBB0_5:
	str	x20, [x21, #40]
Lloh2:
	adrp	x8, _bmg160_channels@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bmg160_channels@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	w0, [x21, #36]
	bl	_ARRAY_SIZE
	str	w0, [x21, #32]
Lloh5:
	adrp	x8, _bmg160_accel_scan_masks@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bmg160_accel_scan_masks@GOTPAGEOFF]
	str	x23, [x21]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
Lloh11:
	adrp	x8, _bmg160_info@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bmg160_info@GOTPAGEOFF]
	str	x8, [x21, #16]
	ldr	w1, [x19]
	cmp	w1, #1
	b.lt	LBB0_15
; %bb.6:
Lloh13:
	adrp	x8, _bmg160_data_rdy_trig_poll@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bmg160_data_rdy_trig_poll@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _bmg160_event_handler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bmg160_event_handler@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _BMG160_IRQ_NAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BMG160_IRQ_NAME@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	x2, [x21]
	ldr	w3, [x21, #8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_iio_trigger_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x2, [x21]
	ldr	w3, [x21, #8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_iio_trigger_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [x19, #16]
Lloh29:
	adrp	x23, _bmg160_trigger_ops@GOTPAGE
Lloh30:
	ldr	x23, [x23, _bmg160_trigger_ops@GOTPAGEOFF]
	stp	x23, x20, [x0]
	mov	x1, x21
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x19, #16]
	bl	_iio_trigger_register
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.10:
	ldr	x0, [x19, #8]
	stp	x23, x20, [x0]
	mov	x1, x21
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x19, #8]
	bl	_iio_trigger_register
	cbz	w0, LBB0_15
; %bb.11:
	mov	x22, x0
	str	xzr, [x19, #8]
	b	LBB0_19
LBB0_12:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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
LBB0_14:
	mov	x22, x0
	b	LBB0_13
LBB0_15:
Lloh34:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh35:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _bmg160_trigger_handler@GOTPAGE
Lloh38:
	ldr	x8, [x8, _bmg160_trigger_handler@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x3, _bmg160_buffer_setup_ops@GOTPAGE
Lloh41:
	ldr	x3, [x3, _bmg160_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x21
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_pm_runtime_set_active
	mov	x22, x0
	cbz	w0, LBB0_23
LBB0_17:
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_19
LBB0_18:
	mov	x22, x0
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_19:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_iio_trigger_unregister
LBB0_21:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.22:
	bl	_iio_trigger_unregister
	b	LBB0_13
LBB0_23:
	mov	x0, x20
	bl	_pm_runtime_enable
Lloh44:
	adrp	x8, _BMG160_AUTO_SUSPEND_DELAY_MS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BMG160_AUTO_SUSPEND_DELAY_MS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_25
; %bb.24:
	mov	w22, #0
	b	LBB0_13
LBB0_25:
	mov	x22, x0
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mount-matrix"

	.comm	_bmg160_channels,4,2            ; @bmg160_channels
	.comm	_bmg160_accel_scan_masks,4,2    ; @bmg160_accel_scan_masks
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_bmg160_info,4,2                ; @bmg160_info
	.comm	_bmg160_data_rdy_trig_poll,4,2  ; @bmg160_data_rdy_trig_poll
	.comm	_bmg160_event_handler,4,2       ; @bmg160_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_BMG160_IRQ_NAME,4,2            ; @BMG160_IRQ_NAME
l_.str.1:                               ; @.str.1
	.asciz	"%s-dev%d"

l_.str.2:                               ; @.str.2
	.asciz	"%s-any-motion-dev%d"

	.comm	_bmg160_trigger_ops,4,2         ; @bmg160_trigger_ops
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_bmg160_trigger_handler,4,2     ; @bmg160_trigger_handler
	.comm	_bmg160_buffer_setup_ops,4,2    ; @bmg160_buffer_setup_ops
l_.str.3:                               ; @.str.3
	.asciz	"iio triggered buffer setup failed\n"

	.comm	_BMG160_AUTO_SUSPEND_DELAY_MS,4,2 ; @BMG160_AUTO_SUSPEND_DELAY_MS
l_.str.4:                               ; @.str.4
	.asciz	"unable to register iio device\n"

.subsections_via_symbols
