	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_gpio_probe
_stmpe_gpio_probe:                      ## @stmpe_gpio_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	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_MAX_GPIOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	(%r15), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r12
	leaq	64(%rax), %rdi
	callq	_mutex_init
	movq	%r15, 56(%r12)
	movq	%r14, 48(%r12)
	movq	_template_chip@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm0, (%r12)
	movups	%xmm1, 16(%r12)
	movq	32(%rax), %rax
	movq	%rax, 32(%r12)
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movq	%r15, 32(%r12)
	movq	%rbx, 24(%r12)
	movl	$-1, 8(%r12)
	movq	_stmpe_init_irq_valid_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_CONFIG_DEBUG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_stmpe_dbg_show@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
LBB0_5:
	movq	%r12, %rdx
	addq	$40, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
LBB0_7:
	movq	_STMPE_BLOCK_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stmpe_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movq	_STMPE_BLOCK_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stmpe_disable
	movq	%r12, %rdi
	callq	_gpiochip_remove
LBB0_12:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	testl	%r13d, %r13d
	jle	LBB0_22
## %bb.17:
	movq	_stmpe_gpio_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.4(%rip), %r9
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_10
LBB0_19:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_stmpe_gpio_irq_chip@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add_nested
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_21:
	movq	_stmpe_gpio_irq_chip@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_gpiochip_set_nested_irqchip
LBB0_22:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GPIOS,8,3                  ## @MAX_GPIOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need to increase maximum GPIO number\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_template_chip,40,3             ## @template_chip
	.comm	_stmpe_init_irq_valid_mask,4,2  ## @stmpe_init_irq_valid_mask
	.comm	_CONFIG_DEBUG_FS,4,2            ## @CONFIG_DEBUG_FS
	.comm	_stmpe_dbg_show,4,2             ## @stmpe_dbg_show
L_.str.1:                               ## @.str.1
	.asciz	"st,norequest-mask"

L_.str.2:                               ## @.str.2
	.asciz	"device configured in no-irq mode: irqs are not available\n"

	.comm	_STMPE_BLOCK_GPIO,4,2           ## @STMPE_BLOCK_GPIO
L_.str.3:                               ## @.str.3
	.asciz	"unable to add gpiochip: %d\n"

	.comm	_stmpe_gpio_irq,4,2             ## @stmpe_gpio_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"stmpe-gpio"

L_.str.5:                               ## @.str.5
	.asciz	"unable to get irq: %d\n"

	.comm	_stmpe_gpio_irq_chip,4,2        ## @stmpe_gpio_irq_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.6:                               ## @.str.6
	.asciz	"could not connect irqchip to gpiochip\n"

	.no_dead_strip	_stmpe_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_gpio_probe
_stmpe_gpio_probe:                      ; @stmpe_gpio_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
	ldr	w0, [x0, #8]
	bl	_dev_get_drvdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_GPIOS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_GPIOS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	mov	x20, x0
	ldr	x22, [x21]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x19, x0
	add	x0, x0, #64
	bl	_mutex_init
	stp	x20, x21, [x19, #48]
Lloh10:
	adrp	x8, _template_chip@GOTPAGE
Lloh11:
	ldr	x8, [x8, _template_chip@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	ldr	x8, [x8, #32]
	stp	q0, q1, [x19]
	str	x8, [x19, #32]
	ldr	x8, [x20]
	str	x8, [x19]
	str	x21, [x19, #32]
	mov	w8, #-1
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _stmpe_init_irq_valid_mask@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stmpe_init_irq_valid_mask@GOTPAGEOFF]
	str	x22, [x19, #24]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh15:
	adrp	x8, _CONFIG_DEBUG_FS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONFIG_DEBUG_FS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _stmpe_dbg_show@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stmpe_dbg_show@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_5:
	add	x2, x19, #40
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbz	w0, #31, LBB0_7
; %bb.6:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_info
LBB0_7:
Lloh25:
	adrp	x24, _STMPE_BLOCK_GPIO@GOTPAGE
Lloh26:
	ldr	x24, [x24, _STMPE_BLOCK_GPIO@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_stmpe_enable
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	mov	x1, x19
	bl	_gpiochip_add_data
	cbz	w0, LBB0_16
; %bb.9:
	mov	x23, x0
	str	x23, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x21
	bl	_dev_err
LBB0_11:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_stmpe_disable
	mov	x0, x19
	bl	_gpiochip_remove
LBB0_12:
	mov	x0, x19
	bl	_kfree
	b	LBB0_15
LBB0_13:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x23
	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
LBB0_16:
	cmp	w22, #1
	b.lt	LBB0_22
; %bb.17:
Lloh31:
	adrp	x8, _stmpe_gpio_irq@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stmpe_gpio_irq@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
Lloh34:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
Lloh37:
	adrp	x5, l_.str.4@PAGE
Lloh38:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_19
; %bb.18:
	mov	x23, x0
	str	x23, [sp]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_11
LBB0_19:
Lloh41:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh42:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
Lloh44:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh46:
	ldr	w4, [x8]
Lloh47:
	adrp	x1, _stmpe_gpio_irq_chip@GOTPAGE
Lloh48:
	ldr	x1, [x1, _stmpe_gpio_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_gpiochip_irqchip_add_nested
	cbz	w0, LBB0_21
; %bb.20:
	mov	x23, x0
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_21:
Lloh51:
	adrp	x1, _stmpe_gpio_irq_chip@GOTPAGE
Lloh52:
	ldr	x1, [x1, _stmpe_gpio_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x22
	bl	_gpiochip_set_nested_irqchip
LBB0_22:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w23, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GPIOS,8,3                  ; @MAX_GPIOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need to increase maximum GPIO number\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_template_chip,40,3             ; @template_chip
	.comm	_stmpe_init_irq_valid_mask,4,2  ; @stmpe_init_irq_valid_mask
	.comm	_CONFIG_DEBUG_FS,4,2            ; @CONFIG_DEBUG_FS
	.comm	_stmpe_dbg_show,4,2             ; @stmpe_dbg_show
l_.str.1:                               ; @.str.1
	.asciz	"st,norequest-mask"

l_.str.2:                               ; @.str.2
	.asciz	"device configured in no-irq mode: irqs are not available\n"

	.comm	_STMPE_BLOCK_GPIO,4,2           ; @STMPE_BLOCK_GPIO
l_.str.3:                               ; @.str.3
	.asciz	"unable to add gpiochip: %d\n"

	.comm	_stmpe_gpio_irq,4,2             ; @stmpe_gpio_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"stmpe-gpio"

l_.str.5:                               ; @.str.5
	.asciz	"unable to get irq: %d\n"

	.comm	_stmpe_gpio_irq_chip,4,2        ; @stmpe_gpio_irq_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.6:                               ; @.str.6
	.asciz	"could not connect irqchip to gpiochip\n"

	.no_dead_strip	_stmpe_gpio_probe
.subsections_via_symbols
