	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pms7003_probe
_pms7003_probe:                         ## @pms7003_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$16, %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	%r14, %rdi
	movq	%r12, %rsi
	callq	_serdev_device_set_drvdata
	movq	%r14, 8(%r15)
	movq	%r14, 32(%r12)
	movq	_pms7003_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	_PMS7003_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_pms7003_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	_pms7003_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	leaq	4(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_init_completion
	movq	_pms7003_serdev_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_serdev_device_set_client_ops
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_devm_serdev_device_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	movl	$9600, %esi                     ## imm = 0x2580
	callq	_serdev_device_set_baudrate
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_serdev_device_set_flow_control
	movq	_SERDEV_PARITY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_serdev_device_set_parity
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_CMD_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pms7003_do_cmd
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CMD_ENTER_PASSIVE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pms7003_do_cmd
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_9:
	movq	_pms7003_stop@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_11
## %bb.10:
	movq	_pms7003_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_11
## %bb.12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pms7003_info,4,2               ## @pms7003_info
	.comm	_PMS7003_DRIVER_NAME,4,2        ## @PMS7003_DRIVER_NAME
	.comm	_pms7003_channels,4,2           ## @pms7003_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_pms7003_scan_masks,4,2         ## @pms7003_scan_masks
	.comm	_pms7003_serdev_ops,4,2         ## @pms7003_serdev_ops
	.comm	_SERDEV_PARITY_NONE,4,2         ## @SERDEV_PARITY_NONE
	.comm	_CMD_WAKEUP,4,2                 ## @CMD_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to wakeup sensor\n"

	.comm	_CMD_ENTER_PASSIVE_MODE,4,2     ## @CMD_ENTER_PASSIVE_MODE
L_.str.1:                               ## @.str.1
	.asciz	"failed to enter passive mode\n"

	.comm	_pms7003_stop,4,2               ## @pms7003_stop
	.comm	_pms7003_trigger_handler,4,2    ## @pms7003_trigger_handler
	.no_dead_strip	_pms7003_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pms7003_probe
_pms7003_probe:                         ; @pms7003_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_serdev_device_set_drvdata
	str	x19, [x21, #8]
Lloh0:
	adrp	x8, _pms7003_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pms7003_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
Lloh2:
	adrp	x8, _PMS7003_DRIVER_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PMS7003_DRIVER_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _pms7003_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _pms7003_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _pms7003_scan_masks@GOTPAGE
Lloh12:
	ldr	x9, [x9, _pms7003_scan_masks@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	add	x0, x21, #4
	bl	_mutex_init
	mov	x0, x21
	bl	_init_completion
Lloh14:
	adrp	x1, _pms7003_serdev_ops@GOTPAGE
Lloh15:
	ldr	x1, [x1, _pms7003_serdev_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_serdev_device_set_client_ops
	mov	x0, x19
	mov	x1, x19
	bl	_devm_serdev_device_open
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #9600
	bl	_serdev_device_set_baudrate
	mov	x0, x19
	mov	w1, #0
	bl	_serdev_device_set_flow_control
Lloh16:
	adrp	x8, _SERDEV_PARITY_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SERDEV_PARITY_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_serdev_device_set_parity
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
Lloh19:
	adrp	x8, _CMD_WAKEUP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_WAKEUP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pms7003_do_cmd
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh27:
	adrp	x8, _CMD_ENTER_PASSIVE_MODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CMD_ENTER_PASSIVE_MODE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pms7003_do_cmd
	cbz	w0, LBB0_10
; %bb.8:
	mov	x22, x0
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_10:
Lloh32:
	adrp	x8, _pms7003_stop@GOTPAGE
Lloh33:
	ldr	x8, [x8, _pms7003_stop@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.11:
Lloh35:
	adrp	x8, _pms7003_trigger_handler@GOTPAGE
Lloh36:
	ldr	x8, [x8, _pms7003_trigger_handler@GOTPAGEOFF]
Lloh37:
	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_6
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_devm_iio_device_register
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pms7003_info,4,2               ; @pms7003_info
	.comm	_PMS7003_DRIVER_NAME,4,2        ; @PMS7003_DRIVER_NAME
	.comm	_pms7003_channels,4,2           ; @pms7003_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_pms7003_scan_masks,4,2         ; @pms7003_scan_masks
	.comm	_pms7003_serdev_ops,4,2         ; @pms7003_serdev_ops
	.comm	_SERDEV_PARITY_NONE,4,2         ; @SERDEV_PARITY_NONE
	.comm	_CMD_WAKEUP,4,2                 ; @CMD_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to wakeup sensor\n"

	.comm	_CMD_ENTER_PASSIVE_MODE,4,2     ; @CMD_ENTER_PASSIVE_MODE
l_.str.1:                               ; @.str.1
	.asciz	"failed to enter passive mode\n"

	.comm	_pms7003_stop,4,2               ; @pms7003_stop
	.comm	_pms7003_trigger_handler,4,2    ; @pms7003_trigger_handler
	.no_dead_strip	_pms7003_probe
.subsections_via_symbols
