	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bmi160_core_probe              ## -- Begin function bmi160_core_probe
	.p2align	4, 0x90
_bmi160_core_probe:                     ## @bmi160_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
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$8, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	%r15, (%rbx)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_bmi160_chip_init
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	_bmi160_chip_uninit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_bmi160_match_acpi_device
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r14, 8(%r12)
	movq	_bmi160_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 32(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 28(%r12)
	movq	%rbx, (%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_bmi160_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bmi160_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	%r12, %r15
	addq	$8, %r15
	movl	(%r14), %edi
	leaq	-44(%rbp), %rsi
	callq	_bmi160_get_irq
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bmi160_setup_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
LBB0_13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_devm_iio_device_register
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bmi160_chip_uninit,4,2         ## @bmi160_chip_uninit
	.comm	_bmi160_channels,4,2            ## @bmi160_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_bmi160_info,4,2                ## @bmi160_info
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_bmi160_trigger_handler,4,2     ## @bmi160_trigger_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to setup IRQ %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not setting up IRQ trigger\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bmi160_core_probe              ; -- Begin function bmi160_core_probe
	.p2align	2
_bmi160_core_probe:                     ; @bmi160_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	mov	w1, #8
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	str	x24, [x23]
	mov	x0, x23
	mov	x1, x22
	bl	_bmi160_chip_init
	cbnz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _bmi160_chip_uninit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bmi160_chip_uninit@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_devm_add_action_or_reset
	cbnz	w0, LBB0_7
; %bb.3:
	cbnz	x21, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_bmi160_match_acpi_device
	mov	x21, x0
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x22, x20
	str	x19, [x22, #8]!
Lloh6:
	adrp	x8, _bmi160_channels@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bmi160_channels@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	w0, [x20, #32]
	bl	_ARRAY_SIZE
	str	x21, [x20]
Lloh9:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #24]
Lloh12:
	adrp	x8, _bmi160_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bmi160_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh14:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh15:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _bmi160_trigger_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bmi160_trigger_handler@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	bl	_devm_iio_triggered_buffer_setup
	cbnz	w0, LBB0_7
; %bb.10:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_bmi160_get_irq
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x21, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_bmi160_setup_irq
	cbz	w0, LBB0_14
; %bb.12:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_err
	b	LBB0_14
LBB0_13:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_info
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bmi160_chip_uninit,4,2         ; @bmi160_chip_uninit
	.comm	_bmi160_channels,4,2            ; @bmi160_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_bmi160_info,4,2                ; @bmi160_info
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_bmi160_trigger_handler,4,2     ; @bmi160_trigger_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to setup IRQ %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not setting up IRQ trigger\n"

.subsections_via_symbols
