	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa930_trkball_probe
_pxa930_trkball_probe:                  ## @pxa930_trkball_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
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_dev_get_platdata
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ioremap_nocache
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_pxa930_trkball_disable
	movq	_pxa930_trkball_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %ecx
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	movl	4(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_pxa930_trkball_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_pxa930_trkball_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	%rbx, 8(%r14)
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	%rbx, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_input_free_device
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_16:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_17:
	movl	(%r14), %edi
	callq	_iounmap
LBB0_18:
	movq	%r14, %rdi
	callq	_kfree
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get register memory\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"no platform data defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"failed to ioremap registers\n"

	.comm	_pxa930_trkball_interrupt,4,2   ## @pxa930_trkball_interrupt
L_.str.3:                               ## @.str.3
	.asciz	"failed to request irq: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate input device\n"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_pxa930_trkball_open,4,2        ## @pxa930_trkball_open
	.comm	_pxa930_trkball_close,4,2       ## @pxa930_trkball_close
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
L_.str.5:                               ## @.str.5
	.asciz	"unable to register input device\n"

	.no_dead_strip	_pxa930_trkball_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa930_trkball_probe
_pxa930_trkball_probe:                  ; @pxa930_trkball_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	x20, x0
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x19, x0
	mov	x0, x20
	bl	_dev_get_platdata
	str	w0, [x19, #16]
	cbz	w0, LBB0_11
; %bb.4:
	ldr	w23, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap_nocache
	str	w0, [x19]
	cbz	w0, LBB0_12
; %bb.5:
	mov	x0, x19
	bl	_pxa930_trkball_disable
Lloh6:
	adrp	x8, _pxa930_trkball_interrupt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pxa930_trkball_interrupt@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w3, [x20, #4]
	mov	x0, x21
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_14
; %bb.6:
	mov	x22, x0
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_19
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_21
LBB0_10:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_11:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	bl	_input_allocate_device
	cbz	x0, LBB0_17
; %bb.15:
	mov	x23, x0
	ldr	w8, [x20, #4]
Lloh25:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh28:
	adrp	x8, _pxa930_trkball_open@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pxa930_trkball_open@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _pxa930_trkball_close@GOTPAGE
Lloh32:
	ldr	x9, [x9, _pxa930_trkball_close@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x20, [x0]
	mov	x1, x19
	bl	_input_set_drvdata
	str	x23, [x19, #8]
Lloh34:
	adrp	x22, _EV_REL@GOTPAGE
Lloh35:
	ldr	x22, [x22, _EV_REL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh36:
	adrp	x8, _REL_X@GOTPAGE
Lloh37:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_input_set_capability
	ldr	w1, [x22]
Lloh39:
	adrp	x8, _REL_Y@GOTPAGE
Lloh40:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_input_set_capability
	mov	x0, x23
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_21
; %bb.16:
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x23
	bl	_input_free_device
	b	LBB0_18
LBB0_17:
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_18:
	mov	x0, x21
	mov	x1, x19
	bl	_free_irq
LBB0_19:
	ldr	w0, [x19]
	bl	_iounmap
LBB0_20:
	mov	x0, x19
	bl	_kfree
LBB0_21:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get register memory\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"no platform data defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"failed to ioremap registers\n"

	.comm	_pxa930_trkball_interrupt,4,2   ; @pxa930_trkball_interrupt
l_.str.3:                               ; @.str.3
	.asciz	"failed to request irq: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate input device\n"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_pxa930_trkball_open,4,2        ; @pxa930_trkball_open
	.comm	_pxa930_trkball_close,4,2       ; @pxa930_trkball_close
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
l_.str.5:                               ; @.str.5
	.asciz	"unable to register input device\n"

	.no_dead_strip	_pxa930_trkball_probe
.subsections_via_symbols
