	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sps30_probe
_sps30_probe:                           ## @sps30_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	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 8(%r15)
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r14, 32(%r12)
	movq	_sps30_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movl	4(%r14), %eax
	movl	%eax, 16(%r12)
	movq	_sps30_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_sps30_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_mutex_init
	movq	_sps30_crc8_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SPS30_CRC8_POLYNOMIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crc8_populate_msb
	movq	%r15, %rdi
	callq	_sps30_do_cmd_reset
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_8:
	movq	_SPS30_READ_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %rdx
	movq	%r15, %rdi
	movl	$128, %ecx
	callq	_sps30_do_cmd
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	leaq	-176(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dev_info
	movq	_sps30_stop_meas@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_sps30_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_devm_iio_triggered_buffer_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_devm_iio_device_register
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RESET,4,2                      ## @RESET
	.comm	_sps30_info,4,2                 ## @sps30_info
	.comm	_sps30_channels,4,2             ## @sps30_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_sps30_scan_masks,4,2           ## @sps30_scan_masks
	.comm	_sps30_crc8_table,4,2           ## @sps30_crc8_table
	.comm	_SPS30_CRC8_POLYNOMIAL,4,2      ## @SPS30_CRC8_POLYNOMIAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reset device\n"

	.comm	_SPS30_READ_SERIAL,4,2          ## @SPS30_READ_SERIAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to read serial number\n"

L_.str.2:                               ## @.str.2
	.asciz	"serial number: %s\n"

	.comm	_sps30_stop_meas,4,2            ## @sps30_stop_meas
	.comm	_sps30_trigger_handler,4,2      ## @sps30_trigger_handler
	.no_dead_strip	_sps30_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sps30_probe
_sps30_probe:                           ; @sps30_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x21, #8]
Lloh6:
	adrp	x8, _RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh9:
	adrp	x8, _sps30_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sps30_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, _sps30_channels@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sps30_channels@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh14:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _sps30_scan_masks@GOTPAGE
Lloh18:
	ldr	x9, [x9, _sps30_scan_masks@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x21
	bl	_mutex_init
Lloh20:
	adrp	x8, _sps30_crc8_table@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sps30_crc8_table@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _SPS30_CRC8_POLYNOMIAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPS30_CRC8_POLYNOMIAL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_crc8_populate_msb
	mov	x0, x21
	bl	_sps30_do_cmd_reset
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh28:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_7:
Lloh32:
	adrp	x8, _SPS30_READ_SERIAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SPS30_READ_SERIAL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #128
	bl	_sps30_do_cmd
	cbz	w0, LBB0_12
; %bb.8:
	mov	x22, x0
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.11:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_dev_info
Lloh42:
	adrp	x8, _sps30_stop_meas@GOTPAGE
Lloh43:
	ldr	x8, [x8, _sps30_stop_meas@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.13:
Lloh45:
	adrp	x8, _sps30_trigger_handler@GOTPAGE
Lloh46:
	ldr	x8, [x8, _sps30_trigger_handler@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x4, #0
	bl	_devm_iio_triggered_buffer_setup
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x22, x0
	b	LBB0_10
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RESET,4,2                      ; @RESET
	.comm	_sps30_info,4,2                 ; @sps30_info
	.comm	_sps30_channels,4,2             ; @sps30_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_sps30_scan_masks,4,2           ; @sps30_scan_masks
	.comm	_sps30_crc8_table,4,2           ; @sps30_crc8_table
	.comm	_SPS30_CRC8_POLYNOMIAL,4,2      ; @SPS30_CRC8_POLYNOMIAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reset device\n"

	.comm	_SPS30_READ_SERIAL,4,2          ; @SPS30_READ_SERIAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to read serial number\n"

l_.str.2:                               ; @.str.2
	.asciz	"serial number: %s\n"

	.comm	_sps30_stop_meas,4,2            ; @sps30_stop_meas
	.comm	_sps30_trigger_handler,4,2      ; @sps30_trigger_handler
	.no_dead_strip	_sps30_probe
.subsections_via_symbols
