	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_on_probe
_wm831x_on_probe:                       ## @wm831x_on_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, %r15
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wm831x_irq
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, 16(%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	_wm831x_poll_on@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	(%r13), %rcx
	movq	32(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	%rax, %r12
	movq	(%r13), %rax
	movl	%r14d, %ebx
	movq	24(%rax), %r14
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_WORD
	movq	%r12, (%r14,%rax,8)
	movq	(%r13), %rax
	leaq	L_.str.2(%rip), %r8
	movq	%r8, (%rax)
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	%r15, 16(%rax)
	movq	_wm831x_on_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r13, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	(%r13), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_free_irq
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
LBB0_2:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wm831x_poll_on,4,2             ## @wm831x_poll_on
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate input dev\n"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
L_.str.2:                               ## @.str.2
	.asciz	"wm831x_on"

L_.str.3:                               ## @.str.3
	.asciz	"wm831x_on/input0"

	.comm	_wm831x_on_irq,4,2              ## @wm831x_on_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"Unable to request IRQ: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Can't register input device: %d\n"

	.no_dead_strip	_wm831x_on_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_on_probe
_wm831x_on_probe:                       ; @wm831x_on_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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x22
	bl	_wm831x_irq
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	str	x22, [x0, #16]
	add	x0, x0, #8
Lloh3:
	adrp	x8, _wm831x_poll_on@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wm831x_poll_on@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x21]
	ldr	x8, [x8, #32]
	str	x0, [x8]
Lloh9:
	adrp	x23, _KEY_POWER@GOTPAGE
Lloh10:
	ldr	x23, [x23, _KEY_POWER@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT_MASK
	mov	x22, x0
	ldr	x8, [x21]
	ldr	x24, [x8, #24]
	ldr	w0, [x23]
	bl	_BIT_WORD
	str	x22, [x24, x0, lsl #3]
	ldr	x8, [x21]
Lloh11:
	adrp	x4, l_.str.2@PAGE
Lloh12:
	add	x4, x4, l_.str.2@PAGEOFF
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x4, x9, [x8]
	str	x19, [x8, #16]
Lloh15:
	adrp	x8, _wm831x_on_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _wm831x_on_irq@GOTPAGEOFF]
Lloh17:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x0, [x21]
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.4:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x21
	bl	_free_irq
	b	LBB0_8
LBB0_5:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	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
LBB0_9:
	mov	x22, x0
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wm831x_poll_on,4,2             ; @wm831x_poll_on
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate input dev\n"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
l_.str.2:                               ; @.str.2
	.asciz	"wm831x_on"

l_.str.3:                               ; @.str.3
	.asciz	"wm831x_on/input0"

	.comm	_wm831x_on_irq,4,2              ; @wm831x_on_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"Unable to request IRQ: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Can't register input device: %d\n"

	.no_dead_strip	_wm831x_on_probe
.subsections_via_symbols
