	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_keys_probe
_gpio_keys_probe:                       ## @gpio_keys_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-96(%rbp), %rsi
	xorl	%edx, %edx
	callq	_gpio_keys_button_probe
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	-96(%rbp), %rcx
	movq	8(%rcx), %rsi
	cmpl	$0, (%rsi)
	movl	$0, %eax
	jle	LBB0_15
## %bb.2:
	movl	$8, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r12d, %r12d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %r13
	movq	(%rcx), %r15
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	12(%r15,%r12), %r14
	movq	_gpio_keys_irq_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$0, 16(%r15,%r12)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%r13,%rdx), %rax
	testq	%rax, %rax
	movq	%r13, %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r15,%r12)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx,%rdx), %edi
	movq	%rdx, %r13
	movq	%rcx, %rbx
	callq	_gpio_to_irq
	movq	%rax, (%r15,%r12)
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	orq	(%rax), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r12), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	8(%r15,%r12), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	movq	(%r15,%r12), %r13
	movq	_button_handle_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dev_name
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14), %edx
	movq	(%r15,%r12), %rcx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r15,%r12)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14), %ecx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rsi), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rcx
	addq	$24, %r12
	addq	$16, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	incq	%rbx
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rbx,%r13), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_gpio_keys_irq_work_func,4,2    ## @gpio_keys_irq_work_func
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get irq for gpio:%d\n"

	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
	.comm	_button_handle_irq,4,2          ## @button_handle_irq
L_.str.1:                               ## @.str.1
	.asciz	"failed to request irq:%d for gpio:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"gpio:%d has irq:%d\n"

	.no_dead_strip	_gpio_keys_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_keys_probe
_gpio_keys_probe:                       ; @gpio_keys_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x0
	add	x1, sp, #24
	mov	w2, #0
	bl	_gpio_keys_button_probe
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	x27, [x8, #8]
	ldr	w9, [x27]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x28, #0
	mov	x20, #0
	mov	w21, #1
	stp	x27, x26, [sp, #8]              ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x27, #8]
	ldr	x22, [x8]
	add	x23, x22, x20
Lloh0:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	add	x25, x23, #12
Lloh3:
	adrp	x8, _gpio_keys_irq_work_func@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gpio_keys_irq_work_func@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_INIT_DELAYED_WORK
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, x28]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x22, x20]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x19, x28
	ldr	w0, [x26, #8]
	bl	_gpio_to_irq
	str	x0, [x22, x20]
	tbnz	x0, #63, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x8, x8, x24
	orr	x24, x8, x9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x22, x20
	ldr	w0, [x26, #8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x25
	bl	_schedule_delayed_work
	ldr	x25, [x26]
Lloh12:
	adrp	x8, _button_handle_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _button_handle_irq@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x26
	bl	_dev_name
	mov	x5, x0
	mov	x0, x26
	mov	x1, x25
	mov	x2, #0
	mov	x3, x27
	mov	x4, x24
	mov	x6, x23
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x19, x28
	ldr	w2, [x8, #8]
	ldr	x3, [x22, x20]
	mov	x0, x26
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x22, x20]
	add	x8, x19, x28
	ldr	w8, [x8, #8]
	str	x8, [sp]
	mov	x0, x26
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_dev_err
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x27]
	cmp	x21, x8
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]
	add	x20, x20, #24
	add	x28, x28, #16
	add	x21, x21, #1
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x2, [x26, #8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_gpio_keys_irq_work_func,4,2    ; @gpio_keys_irq_work_func
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get irq for gpio:%d\n"

	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
	.comm	_button_handle_irq,4,2          ; @button_handle_irq
l_.str.1:                               ; @.str.1
	.asciz	"failed to request irq:%d for gpio:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"gpio:%d has irq:%d\n"

	.no_dead_strip	_gpio_keys_probe
.subsections_via_symbols
