	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm8333_probe
_lm8333_probe:                          ## @lm8333_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, %rbx
	leaq	4(%rdi), %r13
	movq	%r13, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	jmp	LBB0_5
LBB0_3:
	movl	$166, %eax
LBB0_5:
	movslq	4(%r15), %rcx
	imulq	$1431655766, %rcx, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_6
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 16(%r12)
	movq	%rdi, 8(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 16(%rdi)
	movq	%r13, 8(%rdi)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_set_capability
	movl	8(%r15), %edi
	movq	_LM8333_NUM_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LM8333_NUM_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	xorl	%esi, %esi
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_matrix_keypad_build_keymap
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	_LM8333_DEBOUNCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cltq
	imulq	$1431655766, %rax, %rdx         ## imm = 0x55555556
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$32, %rdx
	addl	%eax, %edx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_lm8333_write8
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_14:
	movl	(%r15), %eax
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:
	movq	_LM8333_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cltq
	imulq	$1431655766, %rax, %rdx         ## imm = 0x55555556
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$32, %rdx
	addl	%eax, %edx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_lm8333_write8
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_17:
	movl	(%rbx), %edi
	movq	_lm8333_irq_thread@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	%r12, %r9
	callq	_request_threaded_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_21
## %bb.18:
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_free_irq
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_21:
	callq	_input_free_device
	movq	%r12, %rdi
	callq	_kfree
LBB0_22:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_i2c_set_clientdata
	xorl	%r14d, %r14d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Active time not big enough!\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_LM8333_NUM_ROWS,4,2            ## @LM8333_NUM_ROWS
	.comm	_LM8333_NUM_COLS,4,2            ## @LM8333_NUM_COLS
	.comm	_LM8333_DEBOUNCE,4,2            ## @LM8333_DEBOUNCE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to set debounce time\n"

	.comm	_LM8333_ACTIVE,4,2              ## @LM8333_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"Unable to set active time\n"

	.comm	_lm8333_irq_thread,4,2          ## @lm8333_irq_thread
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"lm8333"

	.no_dead_strip	_lm8333_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm8333_probe
_lm8333_probe:                          ; @lm8333_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	x19, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_dev_get_platdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	ldpsw	x9, x10, [x0]
	mul	x11, x9, x8
	lsr	x12, x11, #63
	lsr	x11, x11, #32
	add	w11, w11, w12
	mov	w12, #166
	cmp	w9, #0
	csel	w9, w12, w11, eq
	mul	x8, x10, x8
	lsr	x10, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w10
	cmp	w9, w8
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
LBB0_6:
	stp	x21, x19, [x20, #8]
	ldr	w8, [x19, #8]
	str	w8, [x21, #16]
	str	x22, [x21, #8]
Lloh11:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh14:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
Lloh20:
	adrp	x8, _LM8333_NUM_ROWS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LM8333_NUM_ROWS@GOTPAGEOFF]
	ldr	w0, [x23, #8]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _LM8333_NUM_COLS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LM8333_NUM_COLS@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	ldr	w4, [x20]
	mov	x1, #0
	mov	x5, x21
	bl	_matrix_keypad_build_keymap
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_10
; %bb.8:
Lloh26:
	adrp	x9, _LM8333_DEBOUNCE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LM8333_DEBOUNCE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w2, w8, w9
	mov	x0, x20
	bl	_lm8333_write8
	cbz	w0, LBB0_10
; %bb.9:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_10:
	ldr	w8, [x23]
	cbz	w8, LBB0_13
; %bb.11:
Lloh31:
	adrp	x9, _LM8333_ACTIVE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LM8333_ACTIVE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w2, w8, w9
	mov	x0, x20
	bl	_lm8333_write8
	cbz	w0, LBB0_13
; %bb.12:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_13:
	ldr	w0, [x19]
Lloh36:
	adrp	x8, _lm8333_irq_thread@GOTPAGE
Lloh37:
	ldr	x8, [x8, _lm8333_irq_thread@GOTPAGEOFF]
Lloh38:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	ldr	w8, [x9]
Lloh42:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh45:
	adrp	x4, l_.str.3@PAGE
Lloh46:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x21
	bl	_input_register_device
	mov	x24, x0
	cbz	w0, LBB0_18
; %bb.15:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
LBB0_16:
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_17:
	mov	x0, x24
	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_18:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Active time not big enough!\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_LM8333_NUM_ROWS,4,2            ; @LM8333_NUM_ROWS
	.comm	_LM8333_NUM_COLS,4,2            ; @LM8333_NUM_COLS
	.comm	_LM8333_DEBOUNCE,4,2            ; @LM8333_DEBOUNCE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to set debounce time\n"

	.comm	_LM8333_ACTIVE,4,2              ; @LM8333_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"Unable to set active time\n"

	.comm	_lm8333_irq_thread,4,2          ; @lm8333_irq_thread
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"lm8333"

	.no_dead_strip	_lm8333_probe
.subsections_via_symbols
