	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kxsd9_common_probe             ## -- Begin function kxsd9_common_probe
	.p2align	4, 0x90
_kxsd9_common_probe:                    ## @kxsd9_common_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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, 32(%rax)
	movq	%r13, 24(%rax)
	movq	_kxsd9_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 40(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 32(%rbx)
	movq	%r12, (%rbx)
	movq	%r15, 24(%rbx)
	movq	_kxsd9_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_kxsd9_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	16(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_iio_read_mount_matrix
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_kxsd9_reg_vdd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rdi
	movl	%eax, (%rdi)
	movq	_kxsd9_reg_iovdd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_ARRAY_SIZE
	movq	8(%r14), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_KXSD9_CTRL_C_FS_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_kxsd9_power_up
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_kxsd9_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_kxsd9_buffer_setup_ops@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_10:
	movq	%r14, %rdi
	callq	_kxsd9_power_down
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r15, %rdi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r15, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r15, %rdi
	callq	_pm_runtime_put
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_kxsd9_channels,8,3             ## @kxsd9_channels
	.comm	_kxsd9_info,4,2                 ## @kxsd9_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_kxsd9_scan_masks,4,2           ## @kxsd9_scan_masks
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mount-matrix"

	.comm	_kxsd9_reg_vdd,4,2              ## @kxsd9_reg_vdd
	.comm	_kxsd9_reg_iovdd,4,2            ## @kxsd9_reg_iovdd
L_.str.1:                               ## @.str.1
	.asciz	"Cannot get regulators\n"

	.comm	_KXSD9_CTRL_C_FS_2G,4,2         ## @KXSD9_CTRL_C_FS_2G
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_kxsd9_trigger_handler,4,2      ## @kxsd9_trigger_handler
	.comm	_kxsd9_buffer_setup_ops,4,2     ## @kxsd9_buffer_setup_ops
L_.str.2:                               ## @.str.2
	.asciz	"triggered buffer setup failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kxsd9_common_probe             ; -- Begin function kxsd9_common_probe
	.p2align	2
_kxsd9_common_probe:                    ; @kxsd9_common_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	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	stp	x23, x19, [x0, #24]
Lloh0:
	adrp	x8, _kxsd9_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kxsd9_channels@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	str	x0, [x21, #40]
	bl	_ARRAY_SIZE
	str	w0, [x21, #32]
Lloh3:
	adrp	x8, _kxsd9_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kxsd9_info@GOTPAGEOFF]
	str	x22, [x21]
	stp	x8, x19, [x21, #16]
Lloh5:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _kxsd9_scan_masks@GOTPAGE
Lloh9:
	ldr	x9, [x9, _kxsd9_scan_masks@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	add	x2, x20, #16
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_iio_read_mount_matrix
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh13:
	adrp	x8, _kxsd9_reg_vdd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kxsd9_reg_vdd@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x0, [x20, #8]
	str	w8, [x0]
Lloh16:
	adrp	x8, _kxsd9_reg_iovdd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _kxsd9_reg_iovdd@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x20, #8]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	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_6:
Lloh24:
	adrp	x8, _KXSD9_CTRL_C_FS_2G@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KXSD9_CTRL_C_FS_2G@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_kxsd9_power_up
Lloh27:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh28:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _kxsd9_trigger_handler@GOTPAGE
Lloh31:
	ldr	x8, [x8, _kxsd9_trigger_handler@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x3, _kxsd9_buffer_setup_ops@GOTPAGE
Lloh34:
	ldr	x3, [x3, _kxsd9_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x21
	bl	_iio_triggered_buffer_setup
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
LBB0_10:
	mov	x0, x20
	bl	_kxsd9_power_down
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	mov	w1, #2000
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_put
	b	LBB0_5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_kxsd9_channels,8,3             ; @kxsd9_channels
	.comm	_kxsd9_info,4,2                 ; @kxsd9_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_kxsd9_scan_masks,4,2           ; @kxsd9_scan_masks
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mount-matrix"

	.comm	_kxsd9_reg_vdd,4,2              ; @kxsd9_reg_vdd
	.comm	_kxsd9_reg_iovdd,4,2            ; @kxsd9_reg_iovdd
l_.str.1:                               ; @.str.1
	.asciz	"Cannot get regulators\n"

	.comm	_KXSD9_CTRL_C_FS_2G,4,2         ; @KXSD9_CTRL_C_FS_2G
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_kxsd9_trigger_handler,4,2      ; @kxsd9_trigger_handler
	.comm	_kxsd9_buffer_setup_ops,4,2     ; @kxsd9_buffer_setup_ops
l_.str.2:                               ; @.str.2
	.asciz	"triggered buffer setup failed\n"

.subsections_via_symbols
