	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_keys_probe
_adc_keys_probe:                        ## @adc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_iio_channel_get
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, (%rdi)
	je	LBB0_12
## %bb.8:
	leaq	-48(%rbp), %rsi
	callq	_iio_get_channel_type
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	movl	-48(%rbp), %edx
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_14
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_device_property_read_u32
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_12:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	movslq	(%r13), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_adc_keys_load_keymap
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.17:
	movq	%r14, %rdi
	callq	_devm_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_27
## %bb.18:
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_20:
	movq	_adc_keys_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r13, 16(%rbx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r12
	movl	(%r15), %eax
	movl	%eax, 32(%r12)
	leaq	L_.str.6(%rip), %rax
	movq	%rax, (%r12)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r12)
	movl	$256, 24(%r12)                  ## imm = 0x100
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	___set_bit
	cmpl	$0, 4(%r13)
	jle	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	12(%r12), %esi
	callq	___set_bit
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
LBB0_23:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_read_bool
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	___set_bit
LBB0_25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_register_polled_device
	testl	%eax, %eax
	je	LBB0_28
## %bb.26:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_27:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_28:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.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	"buttons"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IIO_VOLTAGE,4,2                ## @IIO_VOLTAGE
L_.str.1:                               ## @.str.1
	.asciz	"Incompatible channel type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"keyup-threshold-microvolt"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid or missing keyup voltage\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate input device\n"

L_.str.5:                               ## @.str.5
	.asciz	"poll-interval"

	.comm	_adc_keys_poll,4,2              ## @adc_keys_poll
L_.str.6:                               ## @.str.6
	.asciz	"adc-keys/input0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_KEY,4,2                     ## @EV_KEY
L_.str.7:                               ## @.str.7
	.asciz	"autorepeat"

	.comm	_EV_REP,4,2                     ## @EV_REP
L_.str.8:                               ## @.str.8
	.asciz	"Unable to register input device: %d\n"

	.no_dead_strip	_adc_keys_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_keys_probe
_adc_keys_probe:                        ; @adc_keys_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	x21, x0
	add	x19, x0, #4
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_24
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_iio_channel_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	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
	b	_PTR_ERR
LBB0_3:
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.4:
	add	x1, sp, #12
	bl	_iio_get_channel_type
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_device_property_read_u32
	cbz	x0, LBB0_12
; %bb.7:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_25
LBB0_9:
	mov	x22, x0
	b	LBB0_26
LBB0_10:
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_12:
	ldrsw	x8, [x20]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_adc_keys_load_keymap
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.13:
	mov	x0, x19
	bl	_devm_input_allocate_polled_device
	cbz	x0, LBB0_23
; %bb.14:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_device_property_read_u32
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	w8, [sp, #8]
	str	w8, [x22]
LBB0_16:
Lloh20:
	adrp	x8, _adc_keys_poll@GOTPAGE
Lloh21:
	ldr	x8, [x8, _adc_keys_poll@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	str	x20, [x22, #16]
	ldr	x23, [x22, #8]
	ldr	w8, [x21]
	str	w8, [x23, #32]
Lloh23:
	adrp	x8, l_.str.6@PAGE
Lloh24:
	add	x8, x8, l_.str.6@PAGEOFF
	str	x8, [x23]
Lloh25:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	movi.2s	v0, #1
	str	d0, [x23, #16]
	mov	w9, #256
	stp	w9, w8, [x23, #24]
Lloh28:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x23, #8]
	bl	___set_bit
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x21, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [x23, #12]
	bl	___set_bit
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.lt	LBB0_18
LBB0_19:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	cbz	x0, LBB0_21
; %bb.20:
Lloh33:
	adrp	x8, _EV_REP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x23, #8]
	bl	___set_bit
LBB0_21:
	mov	x0, x22
	bl	_input_register_polled_device
	mov	x22, x0
	cbz	w0, LBB0_26
; %bb.22:
	str	x22, [sp]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_26
LBB0_23:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_24:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_26:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.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	"buttons"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IIO_VOLTAGE,4,2                ; @IIO_VOLTAGE
l_.str.1:                               ; @.str.1
	.asciz	"Incompatible channel type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"keyup-threshold-microvolt"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid or missing keyup voltage\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate input device\n"

l_.str.5:                               ; @.str.5
	.asciz	"poll-interval"

	.comm	_adc_keys_poll,4,2              ; @adc_keys_poll
l_.str.6:                               ; @.str.6
	.asciz	"adc-keys/input0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_KEY,4,2                     ; @EV_KEY
l_.str.7:                               ; @.str.7
	.asciz	"autorepeat"

	.comm	_EV_REP,4,2                     ; @EV_REP
l_.str.8:                               ; @.str.8
	.asciz	"Unable to register input device: %d\n"

	.no_dead_strip	_adc_keys_probe
.subsections_via_symbols
