	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk3310_probe
_stk3310_probe:                         ## @stk3310_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, %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r12, 8(%rax)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_stk3310_regmap_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	%r15, 24(%rbx)
	movq	_stk3310_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_STK3310_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_stk3310_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_stk3310_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.4:
	movq	_stk3310_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stk3310_irq_event_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	_STK3310_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, (%rsp)
	movq	%r15, %rdi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	callq	_iio_device_register
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_12
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r13d
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r13d
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movq	_STK3310_STATE_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stk3310_set_state
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio allocation failed!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stk3310_info,4,2               ## @stk3310_info
	.comm	_STK3310_DRIVER_NAME,4,2        ## @STK3310_DRIVER_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_stk3310_channels,4,2           ## @stk3310_channels
	.comm	_stk3310_irq_handler,4,2        ## @stk3310_irq_handler
	.comm	_stk3310_irq_event_handler,4,2  ## @stk3310_irq_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_STK3310_EVENT,4,2              ## @STK3310_EVENT
L_.str.1:                               ## @.str.1
	.asciz	"request irq %d failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"device_register failed\n"

	.comm	_STK3310_STATE_STANDBY,4,2      ## @STK3310_STATE_STANDBY
	.no_dead_strip	_stk3310_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk3310_probe
_stk3310_probe:                         ; @stk3310_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	bl	_iio_priv
	mov	x20, x0
	str	x21, [x0, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_i2c_set_clientdata
	mov	x0, x20
	bl	_mutex_init
	mov	x0, x20
	bl	_stk3310_regmap_init
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _stk3310_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stk3310_info@GOTPAGEOFF]
	stp	x8, x19, [x22, #16]
Lloh2:
	adrp	x8, _STK3310_DRIVER_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STK3310_DRIVER_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x22, #12]
Lloh5:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _stk3310_channels@GOTPAGE
Lloh9:
	ldr	x9, [x9, _stk3310_channels@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	stp	w0, w8, [x22, #4]
	bl	_ARRAY_SIZE
	str	w0, [x22]
	mov	x0, x22
	bl	_stk3310_init
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	x1, [x21]
	cmp	x1, #1
	b.lt	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _stk3310_irq_handler@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stk3310_irq_handler@GOTPAGEOFF]
Lloh13:
	adrp	x9, _stk3310_irq_event_handler@GOTPAGE
Lloh14:
	ldr	x9, [x9, _stk3310_irq_event_handler@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	ldr	w3, [x9]
Lloh17:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh19:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh23:
	adrp	x8, _STK3310_EVENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STK3310_EVENT@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x6, x22
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_10
LBB0_5:
	mov	x0, x22
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	w23, #0
	b	LBB0_12
LBB0_7:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_8:
	mov	x23, x0
	b	LBB0_12
LBB0_9:
	mov	x23, x0
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x23, x0
	ldr	x8, [x21]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
Lloh35:
	adrp	x8, _STK3310_STATE_STANDBY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _STK3310_STATE_STANDBY@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stk3310_set_state
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio allocation failed!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stk3310_info,4,2               ; @stk3310_info
	.comm	_STK3310_DRIVER_NAME,4,2        ; @STK3310_DRIVER_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_stk3310_channels,4,2           ; @stk3310_channels
	.comm	_stk3310_irq_handler,4,2        ; @stk3310_irq_handler
	.comm	_stk3310_irq_event_handler,4,2  ; @stk3310_irq_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_STK3310_EVENT,4,2              ; @STK3310_EVENT
l_.str.1:                               ; @.str.1
	.asciz	"request irq %d failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"device_register failed\n"

	.comm	_STK3310_STATE_STANDBY,4,2      ; @STK3310_STATE_STANDBY
	.no_dead_strip	_stk3310_probe
.subsections_via_symbols
