	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa930_rotary_probe
_pxa930_rotary_probe:                   ## @pxa930_rotary_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_dev_get_platdata
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	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	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %rbx
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_resource_size
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ioremap_nocache
	movq	%rax, (%rbx)
	testq	%rax, %rax
	movq	%rbx, %r14
	je	LBB0_10
## %bb.11:
	movq	%r12, 16(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	4(%r13), %ecx
	movl	%ecx, 36(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_pxa930_rotary_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_pxa930_rotary_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%r13, 16(%rax)
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	movq	%rax, %rbx
	je	LBB0_16
## %bb.14:
	cmpq	$0, 8(%r12)
	je	LBB0_16
## %bb.15:
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	8(%r12), %rdi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_16:
	movq	(%r12), %rdi
	movl	4(%rbx), %esi
	callq	___set_bit
	movq	_EV_REL@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	_rotary_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.18:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_19:
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_24
## %bb.20:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	%r15d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_free_irq
LBB0_21:
	movl	%r14d, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_free_device
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	movq	(%r14), %rdi
	callq	_iounmap
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %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	"no I/O memory defined\n"

L_.str.1:                               ## @.str.1
	.asciz	"no platform data defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"failed to remap IO memory\n"

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

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_pxa930_rotary_open,4,2         ## @pxa930_rotary_open
	.comm	_pxa930_rotary_close,4,2        ## @pxa930_rotary_close
	.comm	_EV_KEY,8,3                     ## @EV_KEY
	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_rotary_irq,4,2                 ## @rotary_irq
L_.str.4:                               ## @.str.4
	.asciz	"enhanced rotary"

L_.str.5:                               ## @.str.5
	.asciz	"failed to request IRQ\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to register input device\n"

	.no_dead_strip	_pxa930_rotary_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa930_rotary_probe
_pxa930_rotary_probe:                   ; @pxa930_rotary_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	x20, x0
	bl	_dev_get_platdata
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_10
; %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_9
; %bb.2:
	cbz	x23, LBB0_13
; %bb.3:
	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_14
; %bb.4:
	mov	x19, x0
	ldr	w24, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x1, x0
	mov	x0, x24
	bl	_ioremap_nocache
	str	x0, [x19]
	cbz	x0, LBB0_15
; %bb.5:
	str	x23, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	bl	_input_allocate_device
	cbz	x0, LBB0_16
; %bb.6:
	mov	x22, x0
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh9:
	adrp	x8, _pxa930_rotary_open@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pxa930_rotary_open@GOTPAGEOFF]
Lloh11:
	adrp	x9, _pxa930_rotary_close@GOTPAGE
Lloh12:
	ldr	x9, [x9, _pxa930_rotary_close@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	str	x20, [x0, #16]
	ldr	x0, [x23, #16]
	cbz	x0, LBB0_17
; %bb.7:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_17
; %bb.8:
	ldr	w1, [x22, #8]
	bl	___set_bit
	ldr	x0, [x23, #8]
	ldr	w1, [x22, #8]
	bl	___set_bit
Lloh15:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_10:
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	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_13:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh29:
	adrp	x8, _ENXIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_24
LBB0_16:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_23
LBB0_17:
	ldr	x0, [x23]
	ldr	w1, [x22, #4]
	bl	___set_bit
Lloh37:
	adrp	x8, _EV_REL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
LBB0_18:
	ldr	x0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
	str	x22, [x19, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_input_set_drvdata
Lloh39:
	adrp	x8, _rotary_irq@GOTPAGE
Lloh40:
	ldr	x8, [x8, _rotary_irq@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x3, l_.str.4@PAGE
Lloh43:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_20
; %bb.19:
	mov	x23, x0
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_22
LBB0_20:
	mov	x0, x22
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.21:
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	mov	x1, x19
	bl	_free_irq
LBB0_22:
	mov	x0, x22
	bl	_input_free_device
LBB0_23:
	ldr	x0, [x19]
	bl	_iounmap
LBB0_24:
	mov	x0, x19
	bl	_kfree
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.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	"no I/O memory defined\n"

l_.str.1:                               ; @.str.1
	.asciz	"no platform data defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"failed to remap IO memory\n"

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

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_pxa930_rotary_open,4,2         ; @pxa930_rotary_open
	.comm	_pxa930_rotary_close,4,2        ; @pxa930_rotary_close
	.comm	_EV_KEY,8,3                     ; @EV_KEY
	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_rotary_irq,4,2                 ; @rotary_irq
l_.str.4:                               ; @.str.4
	.asciz	"enhanced rotary"

l_.str.5:                               ; @.str.5
	.asciz	"failed to request IRQ\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to register input device\n"

	.no_dead_strip	_pxa930_rotary_probe
.subsections_via_symbols
