	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx9500_probe
_sx9500_probe:                          ## @sx9500_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	%rdi, %r14
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, 32(%rax)
	leaq	24(%rax), %rdi
	callq	_mutex_init
	leaq	20(%r15), %rdi
	callq	_init_completion
	movl	$0, (%r15)
	movq	_sx9500_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	16(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%r12, 32(%r13)
	movq	_SX9500_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_sx9500_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 28(%r13)
	callq	_ARRAY_SIZE
	movl	%eax, 24(%r13)
	movq	_sx9500_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sx9500_gpio_probe
	movq	%r13, %rdi
	callq	_sx9500_init_device
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.5:
	movq	_sx9500_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sx9500_irq_thread_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	(%rax), %r8d
	movq	_SX9500_IRQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, (%rsp)
	movq	%r12, %rdi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, 8(%rax)
	movq	_sx9500_trigger_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_iio_trigger_set_drvdata
	movq	8(%r15), %rdi
	callq	_iio_trigger_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_10:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_12:
	movq	_sx9500_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sx9500_buffer_setup_ops@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_16
## %bb.13:
	movq	%r13, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_9
## %bb.14:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_iio_triggered_buffer_cleanup
	movl	%r12d, %ebx
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	cmpq	$0, (%r14)
	jle	LBB0_9
## %bb.18:
	movq	8(%r15), %rdi
	callq	_iio_trigger_unregister
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sx9500_regmap_config,4,2       ## @sx9500_regmap_config
	.comm	_SX9500_DRIVER_NAME,4,2         ## @SX9500_DRIVER_NAME
	.comm	_sx9500_channels,4,2            ## @sx9500_channels
	.comm	_sx9500_info,4,2                ## @sx9500_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no valid irq found\n"

	.comm	_sx9500_irq_handler,4,2         ## @sx9500_irq_handler
	.comm	_sx9500_irq_thread_handler,4,2  ## @sx9500_irq_thread_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_SX9500_IRQ_NAME,4,2            ## @SX9500_IRQ_NAME
L_.str.1:                               ## @.str.1
	.asciz	"%s-dev%d"

	.comm	_sx9500_trigger_ops,4,2         ## @sx9500_trigger_ops
	.comm	_sx9500_trigger_handler,4,2     ## @sx9500_trigger_handler
	.comm	_sx9500_buffer_setup_ops,4,2    ## @sx9500_buffer_setup_ops
	.no_dead_strip	_sx9500_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx9500_probe
_sx9500_probe:                          ; @sx9500_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	x19, x0
	add	x22, x0, #8
	mov	x0, x22
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	str	x19, [x0, #32]
	add	x0, x0, #24
	bl	_mutex_init
	add	x0, x20, #20
	bl	_init_completion
	str	wzr, [x20]
Lloh0:
	adrp	x1, _sx9500_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sx9500_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #16]
	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
	b	_PTR_ERR
LBB0_3:
	str	x22, [x21, #32]
Lloh2:
	adrp	x8, _SX9500_DRIVER_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SX9500_DRIVER_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh5:
	adrp	x8, _sx9500_channels@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sx9500_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x21, #28]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _sx9500_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sx9500_info@GOTPAGEOFF]
	str	w0, [x21, #24]
	str	x8, [x21, #16]
Lloh10:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	mov	x0, x19
	mov	x1, x20
	bl	_sx9500_gpio_probe
	mov	x0, x21
	bl	_sx9500_init_device
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	x1, [x19]
	cmp	x1, #0
	b.le	LBB0_11
; %bb.5:
Lloh13:
	adrp	x8, _sx9500_irq_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sx9500_irq_handler@GOTPAGEOFF]
Lloh15:
	adrp	x9, _sx9500_irq_thread_handler@GOTPAGE
Lloh16:
	ldr	x9, [x9, _sx9500_irq_thread_handler@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	ldr	w3, [x9]
Lloh19:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh21:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh25:
	adrp	x8, _SX9500_IRQ_NAME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SX9500_IRQ_NAME@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x6, x21
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldp	w3, w2, [x21]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_devm_iio_trigger_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _sx9500_trigger_ops@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sx9500_trigger_ops@GOTPAGEOFF]
	stp	x8, x22, [x0]
	mov	x1, x21
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x20, #8]
	bl	_iio_trigger_register
	mov	x23, x0
	cbnz	w0, LBB0_10
	b	LBB0_12
LBB0_8:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_9:
	mov	x23, x0
LBB0_10:
	mov	x0, x23
	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_11:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_12:
Lloh37:
	adrp	x8, _sx9500_trigger_handler@GOTPAGE
Lloh38:
	ldr	x8, [x8, _sx9500_trigger_handler@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x3, _sx9500_buffer_setup_ops@GOTPAGE
Lloh41:
	ldr	x3, [x3, _sx9500_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_16
; %bb.14:
	mov	w23, #0
	b	LBB0_10
LBB0_15:
	mov	x23, x0
	b	LBB0_17
LBB0_16:
	mov	x23, x0
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
LBB0_17:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.18:
	ldr	x0, [x20, #8]
	bl	_iio_trigger_unregister
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sx9500_regmap_config,4,2       ; @sx9500_regmap_config
	.comm	_SX9500_DRIVER_NAME,4,2         ; @SX9500_DRIVER_NAME
	.comm	_sx9500_channels,4,2            ; @sx9500_channels
	.comm	_sx9500_info,4,2                ; @sx9500_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no valid irq found\n"

	.comm	_sx9500_irq_handler,4,2         ; @sx9500_irq_handler
	.comm	_sx9500_irq_thread_handler,4,2  ; @sx9500_irq_thread_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_SX9500_IRQ_NAME,4,2            ; @SX9500_IRQ_NAME
l_.str.1:                               ; @.str.1
	.asciz	"%s-dev%d"

	.comm	_sx9500_trigger_ops,4,2         ; @sx9500_trigger_ops
	.comm	_sx9500_trigger_handler,4,2     ; @sx9500_trigger_handler
	.comm	_sx9500_buffer_setup_ops,4,2    ; @sx9500_buffer_setup_ops
	.no_dead_strip	_sx9500_probe
.subsections_via_symbols
