	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tca6416_keypad_probe
_tca6416_keypad_probe:                  ## @tca6416_keypad_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	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_buttons@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:
	movq	%rbx, 40(%r15)
	movq	%r12, 32(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	36(%r14), %eax
	movl	%eax, 20(%r15)
	movl	32(%r14), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	_tca6416_keys_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r12)
	movl	8(%rbx), %eax
	movl	%eax, 48(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 40(%r12)
	movq	_tca6416_keys_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_tca6416_keys_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 12(%r12)
	movl	$256, 20(%r12)                  ## imm = 0x100
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.8:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	___set_bit
LBB0_9:
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	movq	_EV_KEY@GOTPCREL(%rip), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%rax,%rbx,8), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	16(%r14), %rax
	movl	(%rax,%rbx,8), %esi
	testl	%esi, %esi
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r13), %esi
	jmp	LBB0_13
LBB0_1:
	movq	16(%rbx), %rdi
	callq	_dev_driver_string
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	%r15, %rdi
	callq	_tca6416_setup_registers
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_15
LBB0_24:
	movq	%r12, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_25:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	cmpl	$0, 4(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
LBB0_21:
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 4(%r15)
	jne	LBB0_24
## %bb.23:
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movl	(%r15), %edi
	callq	_enable_irq
	jmp	LBB0_24
LBB0_16:
	cmpq	$0, 8(%r14)
	movl	4(%rbx), %edi
	je	LBB0_18
## %bb.17:
	callq	_gpio_to_irq
	movl	%eax, %edi
LBB0_18:
	movl	%edi, (%r15)
	movq	_tca6416_keys_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	xorl	%esi, %esi
	movq	%r15, %r9
	callq	_request_threaded_irq
	movl	(%r15), %edx
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_24
LBB0_26:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_20:
	movl	%edx, %edi
	callq	_disable_irq
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ## @I2C_FUNC_SMBUS_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s adapter not supported\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_buttons,4,2                    ## @buttons
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tca6416_keys_work_func,4,2     ## @tca6416_keys_work_func
L_.str.2:                               ## @.str.2
	.asciz	"tca6416-keys/input0"

	.comm	_tca6416_keys_open,4,2          ## @tca6416_keys_open
	.comm	_tca6416_keys_close,4,2         ## @tca6416_keys_close
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_tca6416_keys_isr,4,2           ## @tca6416_keys_isr
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"tca6416-keypad"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to claim irq %d; error %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to register input device, error: %d\n"

	.no_dead_strip	_tca6416_keypad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tca6416_keypad_probe
_tca6416_keypad_probe:                  ; @tca6416_keypad_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _buttons@GOTPAGE
Lloh4:
	ldr	x8, [x8, _buttons@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x0]
	bl	_struct_size
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_dev_driver_string
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_7:
	stp	x21, x19, [x20, #32]
	ldr	w8, [x23]
	ldp	w10, w9, [x22, #32]
	stp	w9, w8, [x20, #20]
	str	w10, [x20, #4]
	add	x0, x20, #16
Lloh20:
	adrp	x8, _tca6416_keys_work_func@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tca6416_keys_work_func@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh23:
	adrp	x8, l_.str.2@PAGE
Lloh24:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x21]
	ldr	w8, [x19, #8]
	str	w8, [x21, #48]
	str	x19, [x21, #40]
Lloh25:
	adrp	x8, _tca6416_keys_open@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tca6416_keys_open@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _tca6416_keys_close@GOTPAGE
Lloh29:
	ldr	x9, [x9, _tca6416_keys_close@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #28]
Lloh31:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	movi.2s	v0, #1
	stur	d0, [x21, #12]
	mov	w9, #256
	stp	w9, w8, [x21, #20]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_9
; %bb.8:
Lloh34:
	adrp	x8, _EV_REP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	___set_bit
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x23, #0
	mov	x24, #0
Lloh37:
	adrp	x25, _EV_KEY@GOTPAGE
Lloh38:
	ldr	x25, [x25, _EV_KEY@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x22, #16]
	ldr	x9, [x9, x23]
	str	x9, [x8, x23]
	ldr	x8, [x22, #16]
	add	x8, x8, x23
	ldr	w9, [x25]
	ldp	w10, w2, [x8]
	cmp	w10, #0
	csel	w1, w9, w10, eq
	mov	x0, x21
	bl	_input_set_capability
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	mov	x0, x20
	bl	_tca6416_setup_registers
	mov	x23, x0
	cbz	w0, LBB0_15
LBB0_13:
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_19
LBB0_16:
	mov	x0, x21
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_23
; %bb.17:
	str	x23, [sp]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_13
; %bb.18:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	ldr	w0, [x20]
	bl	_enable_irq
	b	LBB0_13
LBB0_19:
	ldr	x8, [x22, #8]
	ldr	w0, [x19, #4]
	cbz	x8, LBB0_21
; %bb.20:
	bl	_gpio_to_irq
LBB0_21:
	str	w0, [x20]
Lloh41:
	adrp	x8, _tca6416_keys_isr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _tca6416_keys_isr@GOTPAGEOFF]
Lloh43:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh44:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
Lloh46:
	ldr	w8, [x9]
Lloh47:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh50:
	adrp	x4, l_.str.3@PAGE
Lloh51:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x23, x0
	ldr	w0, [x20]
	cbz	w23, LBB0_24
; %bb.22:
	stp	x0, x23, [sp]
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_13
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_14
LBB0_24:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_disable_irq
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ; @I2C_FUNC_SMBUS_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s adapter not supported\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_buttons,4,2                    ; @buttons
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tca6416_keys_work_func,4,2     ; @tca6416_keys_work_func
l_.str.2:                               ; @.str.2
	.asciz	"tca6416-keys/input0"

	.comm	_tca6416_keys_open,4,2          ; @tca6416_keys_open
	.comm	_tca6416_keys_close,4,2         ; @tca6416_keys_close
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_tca6416_keys_isr,4,2           ; @tca6416_keys_isr
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"tca6416-keypad"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to claim irq %d; error %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to register input device, error: %d\n"

	.no_dead_strip	_tca6416_keypad_probe
.subsections_via_symbols
