	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si1145_probe
_si1145_probe:                          ## @si1145_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, %r13
	movq	%rdi, %r15
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 16(%r12)
	movq	_si1145_part_info@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	shlq	$4, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%r12)
	movq	_SI1145_REG_PART_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rdi
	movq	_SI1145_REG_REV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	16(%r12), %rdi
	movq	_SI1145_REG_SEQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_info
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_8
## %bb.9:
	movq	%r15, 24(%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %ecx
	movl	%ecx, 16(%r14)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%r14)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	4(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	callq	_si1145_initialize
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	movq	_si1145_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_si1145_buffer_setup_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	cmpq	$0, 8(%r15)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_si1145_probe_trigger
	testl	%eax, %eax
	jns	LBB0_16
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	%r13d, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_si1145_part_info,8,3           ## @si1145_part_info
	.comm	_SI1145_REG_PART_ID,4,2         ## @SI1145_REG_PART_ID
	.comm	_SI1145_REG_REV_ID,4,2          ## @SI1145_REG_REV_ID
	.comm	_SI1145_REG_SEQ_ID,4,2          ## @SI1145_REG_SEQ_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device ID part %#02hhx rev %#02hhx seq %#02hhx\n"

L_.str.1:                               ## @.str.1
	.asciz	"part ID mismatch got %#02hhx, expected %#02x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_si1145_trigger_handler,4,2     ## @si1145_trigger_handler
	.comm	_si1145_buffer_setup_ops,4,2    ## @si1145_buffer_setup_ops
L_.str.2:                               ## @.str.2
	.asciz	"no irq, using polling\n"

	.no_dead_strip	_si1145_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si1145_probe
_si1145_probe:                          ; @si1145_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x23, x1
	mov	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh0:
	adrp	x8, _si1145_part_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _si1145_part_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #4
	stp	x8, x19, [x21, #8]
Lloh3:
	adrp	x8, _SI1145_REG_PART_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SI1145_REG_PART_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	x0, [x21, #16]
Lloh6:
	adrp	x8, _SI1145_REG_REV_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SI1145_REG_REV_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x24, x0
	tbnz	w0, #31, LBB0_12
; %bb.3:
	ldr	x0, [x21, #16]
Lloh9:
	adrp	x8, _SI1145_REG_SEQ_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SI1145_REG_SEQ_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_13
; %bb.4:
	stp	x24, x0, [sp, #8]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	x8, [x21, #8]
	ldr	w3, [x8]
	cmp	w22, w3
	b.ne	LBB0_15
; %bb.5:
	str	x19, [x20, #24]
	ldr	w9, [x23, #8]
	ldr	w10, [x8, #12]
	stp	w10, w9, [x20, #12]
	ldur	d0, [x8, #4]
	stur	d0, [x20, #4]
Lloh14:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	add	x0, x21, #4
	bl	_mutex_init
	mov	x0, x21
	bl	_mutex_init
	mov	x0, x21
	bl	_si1145_initialize
	tbnz	w0, #31, LBB0_9
; %bb.6:
Lloh17:
	adrp	x8, _si1145_trigger_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _si1145_trigger_handler@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x4, _si1145_buffer_setup_ops@GOTPAGE
Lloh21:
	ldr	x4, [x4, _si1145_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_devm_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.8:
	mov	x0, x20
	bl	_si1145_probe_trigger
	tbz	w0, #31, LBB0_17
LBB0_9:
	mov	x22, x0
	b	LBB0_14
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_12:
	mov	x22, x24
	b	LBB0_14
LBB0_13:
	mov	x22, x0
LBB0_14:
	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
	add	sp, sp, #96
	ret
LBB0_15:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_16:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #96
	b	_devm_iio_device_register
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_si1145_part_info,8,3           ; @si1145_part_info
	.comm	_SI1145_REG_PART_ID,4,2         ; @SI1145_REG_PART_ID
	.comm	_SI1145_REG_REV_ID,4,2          ; @SI1145_REG_REV_ID
	.comm	_SI1145_REG_SEQ_ID,4,2          ; @SI1145_REG_SEQ_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device ID part %#02hhx rev %#02hhx seq %#02hhx\n"

l_.str.1:                               ; @.str.1
	.asciz	"part ID mismatch got %#02hhx, expected %#02x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_si1145_trigger_handler,4,2     ; @si1145_trigger_handler
	.comm	_si1145_buffer_setup_ops,4,2    ; @si1145_buffer_setup_ops
l_.str.2:                               ; @.str.2
	.asciz	"no irq, using polling\n"

	.no_dead_strip	_si1145_probe
.subsections_via_symbols
