	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_decoder_probe
_gpio_decoder_probe:                    ## @gpio_decoder_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_device_property_read_u32
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_gpiod_get_array
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	24(%rbx), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	24(%rbx), %rax
	cmpl	$1, (%rax)
	jg	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	24(%rbx), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%eax, -36(%rbp)
LBB0_8:
	movq	%r14, 16(%rbx)
	movq	%r14, %rdi
	callq	_devm_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rax, %r12
	movq	%rbx, 16(%rax)
	movq	_gpio_decoder_poll_gpios@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, 8(%rbx)
	movl	(%r15), %eax
	movq	(%r12), %rdi
	movl	%eax, 4(%rdi)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movl	(%rbx), %esi
	movl	-36(%rbp), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r12, %rdi
	callq	_input_register_polled_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"linux,axis"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.1:                               ## @.str.1
	.asciz	"unable to acquire input gpios\n"

L_.str.2:                               ## @.str.2
	.asciz	"not enough gpios found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"decoder-max-value"

	.comm	_gpio_decoder_poll_gpios,4,2    ## @gpio_decoder_poll_gpios
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
L_.str.4:                               ## @.str.4
	.asciz	"failed to register polled  device\n"

	.no_dead_strip	_gpio_decoder_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_decoder_probe
_gpio_decoder_probe:                    ; @gpio_decoder_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	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, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_device_property_read_u32
Lloh5:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_gpiod_get_array
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #24]
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cmp	w8, #1
	b.gt	LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [sp, #12]
LBB0_7:
	str	x19, [x20, #16]
	mov	x0, x19
	bl	_devm_input_allocate_polled_device
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	str	x20, [x0, #16]
Lloh16:
	adrp	x8, _gpio_decoder_poll_gpios@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gpio_decoder_poll_gpios@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x0, [x20, #8]
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
	ldr	x0, [x0]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ldr	w1, [x20]
	ldr	w3, [sp, #12]
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x22
	bl	_input_register_polled_device
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.9:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.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	"linux,axis"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.1:                               ; @.str.1
	.asciz	"unable to acquire input gpios\n"

l_.str.2:                               ; @.str.2
	.asciz	"not enough gpios found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"decoder-max-value"

	.comm	_gpio_decoder_poll_gpios,4,2    ; @gpio_decoder_poll_gpios
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
l_.str.4:                               ; @.str.4
	.asciz	"failed to register polled  device\n"

	.no_dead_strip	_gpio_decoder_probe
.subsections_via_symbols
