	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kim_probe
_kim_probe:                             ## @kim_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, %rbx
	movq	16(%rdi), %r12
	movslq	(%rdi), %rax
	movq	_MAX_ST_DEVICES@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	movq	%rax, %rcx
	cmovgeq	%r15, %rcx
	cmpl	$-1, %eax
	movq	_st_kim_devices@GOTPCREL(%rip), %rax
	cmoveq	%r15, %rcx
	movq	(%rax), %rax
	movq	%rdi, (%rax,%rcx,8)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_st_core_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_4:
	movq	(%r14), %rax
	movq	%r14, (%rax)
	movl	12(%r12), %edi
	movl	%edi, 40(%r14)
	leaq	L_.str.2(%rip), %rsi
	callq	_gpio_request
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	movl	40(%r14), %esi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_7:
	movl	%esi, %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	40(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_pr_err
LBB0_11:
	movq	(%r14), %rdi
	callq	_st_core_exit
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, 32(%r14)
	leaq	24(%r14), %rdi
	callq	_init_completion
	movq	%r14, %rdi
	addq	$20, %rdi
	callq	_init_completion
	addq	$8, %rbx
	movq	_uim_attr_grp@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_11
LBB0_14:
	movl	16(%r14), %edi
	movl	8(%r12), %esi
	movq	_UART_DEV_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movl	4(%r12), %eax
	movl	%eax, 12(%r14)
	movl	(%r12), %eax
	movl	%eax, 8(%r14)
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_info
	leaq	L_.str.7(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_debugfs_create_dir
	movq	_kim_debugfs_dir@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movq	_S_IRUGO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.8(%rip), %rdi
	movq	_version_fops@GOTPCREL(%rip), %r8
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_debugfs_create_file
	movl	(%rbx), %esi
	movl	(%r12), %edx
	leaq	L_.str.9(%rip), %rdi
	movq	_list_fops@GOTPCREL(%rip), %r8
	movq	%r14, %rcx
	callq	_debugfs_create_file
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ST_DEVICES,4,2             ## @MAX_ST_DEVICES
	.comm	_st_kim_devices,8,3             ## @st_kim_devices
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mem to allocate"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	" ST core init failed"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"kim"

L_.str.3:                               ## @.str.3
	.asciz	" gpio %d request failed "

L_.str.4:                               ## @.str.4
	.asciz	" unable to configure gpio %d"

	.comm	_uim_attr_grp,4,2               ## @uim_attr_grp
L_.str.5:                               ## @.str.5
	.asciz	"failed to create sysfs entries"

	.comm	_UART_DEV_NAME_LEN,4,2          ## @UART_DEV_NAME_LEN
L_.str.6:                               ## @.str.6
	.asciz	"sysfs entries created\n"

L_.str.7:                               ## @.str.7
	.asciz	"ti-st"

	.comm	_kim_debugfs_dir,4,2            ## @kim_debugfs_dir
L_.str.8:                               ## @.str.8
	.asciz	"version"

	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_version_fops,4,2               ## @version_fops
L_.str.9:                               ## @.str.9
	.asciz	"protocols"

	.comm	_list_fops,4,2                  ## @list_fops
	.no_dead_strip	_kim_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kim_probe
_kim_probe:                             ; @kim_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x22, [x0, #16]
	ldrsw	x8, [x0]
Lloh0:
	adrp	x9, _MAX_ST_DEVICES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_ST_DEVICES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w9, #-1
	ccmp	w8, w9, #4, lt
Lloh3:
	adrp	x9, _st_kim_devices@GOTPAGE
Lloh4:
	ldr	x9, [x9, _st_kim_devices@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	csel	x8, x8, xzr, ne
	str	x0, [x9, x8, lsl #3]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_st_core_init
	cbz	w0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19]
	str	x19, [x8]
	ldr	w0, [x22, #12]
	str	w0, [x19, #40]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_gpio_request
	mov	x21, x0
	bl	_unlikely
	mov	x8, x0
	ldr	w0, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	bl	_gpio_direction_output
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x19, #40]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
	str	x20, [x19, #32]
	add	x0, x19, #24
	bl	_init_completion
	add	x0, x19, #20
	bl	_init_completion
	add	x0, x20, #8
Lloh25:
	adrp	x1, _uim_attr_grp@GOTPAGE
Lloh26:
	ldr	x1, [x1, _uim_attr_grp@GOTPAGEOFF]
	bl	_sysfs_create_group
	cbz	w0, LBB0_13
; %bb.9:
	mov	x21, x0
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_10:
	bl	_pr_err
	ldr	x0, [x19]
	bl	_st_core_exit
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_13:
	ldr	w0, [x19, #16]
	ldr	w1, [x22, #8]
Lloh29:
	adrp	x8, _UART_DEV_NAME_LEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UART_DEV_NAME_LEN@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_strncpy
	ldr	d0, [x22]
	str	d0, [x19, #8]
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_info
Lloh34:
	adrp	x0, l_.str.7@PAGE
Lloh35:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, #0
	bl	_debugfs_create_dir
	mov	x2, x0
Lloh36:
	adrp	x20, _kim_debugfs_dir@GOTPAGE
Lloh37:
	ldr	x20, [x20, _kim_debugfs_dir@GOTPAGEOFF]
	str	w0, [x20]
Lloh38:
	adrp	x21, _S_IRUGO@GOTPAGE
Lloh39:
	ldr	x21, [x21, _S_IRUGO@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh40:
	adrp	x0, l_.str.8@PAGE
Lloh41:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh42:
	adrp	x4, _version_fops@GOTPAGE
Lloh43:
	ldr	x4, [x4, _version_fops@GOTPAGEOFF]
	mov	x3, x19
	bl	_debugfs_create_file
	ldr	w1, [x21]
	ldr	w2, [x20]
Lloh44:
	adrp	x0, l_.str.9@PAGE
Lloh45:
	add	x0, x0, l_.str.9@PAGEOFF
Lloh46:
	adrp	x4, _list_fops@GOTPAGE
Lloh47:
	ldr	x4, [x4, _list_fops@GOTPAGEOFF]
	mov	x3, x19
	bl	_debugfs_create_file
	mov	w21, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ST_DEVICES,4,2             ; @MAX_ST_DEVICES
	.comm	_st_kim_devices,8,3             ; @st_kim_devices
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mem to allocate"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	" ST core init failed"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"kim"

l_.str.3:                               ; @.str.3
	.asciz	" gpio %d request failed "

l_.str.4:                               ; @.str.4
	.asciz	" unable to configure gpio %d"

	.comm	_uim_attr_grp,4,2               ; @uim_attr_grp
l_.str.5:                               ; @.str.5
	.asciz	"failed to create sysfs entries"

	.comm	_UART_DEV_NAME_LEN,4,2          ; @UART_DEV_NAME_LEN
l_.str.6:                               ; @.str.6
	.asciz	"sysfs entries created\n"

l_.str.7:                               ; @.str.7
	.asciz	"ti-st"

	.comm	_kim_debugfs_dir,4,2            ; @kim_debugfs_dir
l_.str.8:                               ; @.str.8
	.asciz	"version"

	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_version_fops,4,2               ; @version_fops
l_.str.9:                               ; @.str.9
	.asciz	"protocols"

	.comm	_list_fops,4,2                  ; @list_fops
	.no_dead_strip	_kim_probe
.subsections_via_symbols
