	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcf50633_input_probe
_pcf50633_input_probe:                  ## @pcf50633_input_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movl	(%r12), %edi
	callq	_dev_to_pcf50633
	movl	%eax, (%r14)
	movq	%r15, 8(%r14)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_EV_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_input_free_device
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movl	(%r14), %edi
	movq	_PCF50633_IRQ_ONKEYR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pcf50633_input_irq@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rcx
	callq	_pcf50633_register_irq
	movl	(%r14), %edi
	movq	_PCF50633_IRQ_ONKEYF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rcx
	callq	_pcf50633_register_irq
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCF50633 PMU events"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_PWR,4,2                     ## @EV_PWR
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_PCF50633_IRQ_ONKEYR,4,2        ## @PCF50633_IRQ_ONKEYR
	.comm	_pcf50633_input_irq,4,2         ## @pcf50633_input_irq
	.comm	_PCF50633_IRQ_ONKEYF,4,2        ## @PCF50633_IRQ_ONKEYF
	.no_dead_strip	_pcf50633_input_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcf50633_input_probe
_pcf50633_input_probe:                  ; @pcf50633_input_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x21]
	bl	_dev_to_pcf50633
	str	w0, [x19]
	str	x20, [x19, #8]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, _BUS_I2C@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BUS_I2C@GOTPAGEOFF]
	str	x8, [x20]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x20, #20]
Lloh8:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh11:
	adrp	x8, _EV_PWR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_PWR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w21
	ldr	x9, [x20, #8]
	str	w8, [x9]
Lloh14:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_set_bit
	mov	x0, x20
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _PCF50633_IRQ_ONKEYR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCF50633_IRQ_ONKEYR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x20, _pcf50633_input_irq@GOTPAGE
Lloh24:
	ldr	x20, [x20, _pcf50633_input_irq@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x3, x19
	bl	_pcf50633_register_irq
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _PCF50633_IRQ_ONKEYF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCF50633_IRQ_ONKEYF@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x3, x19
	bl	_pcf50633_register_irq
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCF50633 PMU events"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_PWR,4,2                     ; @EV_PWR
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_PCF50633_IRQ_ONKEYR,4,2        ; @PCF50633_IRQ_ONKEYR
	.comm	_pcf50633_input_irq,4,2         ; @pcf50633_input_irq
	.comm	_PCF50633_IRQ_ONKEYF,4,2        ; @PCF50633_IRQ_ONKEYF
	.no_dead_strip	_pcf50633_input_probe
.subsections_via_symbols
