	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_twl4030_probe
_gpio_twl4030_probe:                    ## @gpio_twl4030_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, %r13
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	(%r13), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_is_module
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_template_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movl	$-1, 8(%r12)
	movq	_TWL4030_GPIO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	%r13, 24(%r12)
	leaq	32(%r15), %rdi
	callq	_mutex_init
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_of_gpio_twl4030
	movq	%rax, %r14
LBB0_11:
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:
	movl	24(%r14), %esi
	movl	28(%r14), %edi
	callq	_gpio_twl4030_pulls
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	24(%r14), %ecx
	movl	28(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_15:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	callq	_gpio_twl4030_debounce
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	16(%r14), %ecx
	movl	20(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_17:
	addq	$8, %r15
	cmpq	$0, 8(%r14)
	je	LBB0_19
## %bb.18:
	addq	$2, 16(%r12)
LBB0_19:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gpiochip_add_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.22:
	movl	(%r15), %esi
	movq	_TWL4030_GPIO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_24
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_TWL4030_GPIO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_devm_irq_alloc_descs
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_TWL4030_GPIO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_irq_domain_simple_ops@GOTPCREL(%rip), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_irq_domain_add_legacy
	movq	_TWL4030_MODULE_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_twl4030_sih_setup
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%ebx, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_20:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	$0, 16(%r12)
	movq	%r13, %rdi
	callq	_gpio_twl4030_remove
	jmp	LBB0_24
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_7:
	movl	%eax, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"can't dispatch IRQs from modules\n"

	.comm	_TWL4030_GPIO_MAX,8,3           ## @TWL4030_GPIO_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to alloc irq_descs\n"

	.comm	_irq_domain_simple_ops,4,2      ## @irq_domain_simple_ops
	.comm	_TWL4030_MODULE_GPIO,4,2        ## @TWL4030_MODULE_GPIO
	.comm	_template_chip,24,3             ## @template_chip
L_.str.2:                               ## @.str.2
	.asciz	"Platform data is missing\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"pullups %.05x %.05x --> %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"debounce %.03x %.01x --> %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"could not register gpiochip, %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"setup --> %d\n"

	.no_dead_strip	_gpio_twl4030_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_twl4030_probe
_gpio_twl4030_probe:                    ; @gpio_twl4030_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	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
	ldr	x24, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	bl	_is_module
Lloh3:
	adrp	x25, _TWL4030_GPIO_MAX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TWL4030_GPIO_MAX@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_3:
Lloh7:
	adrp	x8, _template_chip@GOTPAGE
Lloh8:
	ldr	x8, [x8, _template_chip@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	mov	x22, x20
	str	x8, [x22, #8]!
	mov	w8, #-1
	str	w8, [x22]
	ldr	x8, [x25]
	stp	x8, x19, [x22, #8]
	add	x0, x22, #24
	bl	_mutex_init
	cbz	x24, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_of_gpio_twl4030
	mov	x21, x0
LBB0_5:
	cbz	x21, LBB0_20
; %bb.6:
	ldp	w1, w0, [x21, #24]
	bl	_gpio_twl4030_pulls
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	ldp	w8, w2, [x21, #24]
	stp	x8, x0, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_8:
	ldp	w1, w0, [x21, #16]
	bl	_gpio_twl4030_debounce
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_10
; %bb.9:
	ldp	w8, w2, [x21, #16]
	stp	x8, x0, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x20, #16]
	add	x8, x8, #2
	str	x8, [x20, #16]
LBB0_12:
	mov	x0, x22
	mov	x1, x20
	bl	_gpiochip_add_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_23
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x8, [x21]
	cbz	x8, LBB0_22
; %bb.14:
	ldr	w1, [x22]
	ldr	x2, [x25]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_22
; %bb.15:
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_22
LBB0_16:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
	ldr	x3, [x25]
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #0
	mov	w4, #0
	bl	_devm_irq_alloc_descs
	mov	x23, x0
	tbnz	w0, #31, LBB0_24
; %bb.18:
	ldr	x1, [x25]
Lloh18:
	adrp	x4, _irq_domain_simple_ops@GOTPAGE
Lloh19:
	ldr	x4, [x4, _irq_domain_simple_ops@GOTPAGEOFF]
	mov	x0, x24
	mov	x2, x23
	mov	w3, #0
	mov	x5, #0
	bl	_irq_domain_add_legacy
Lloh20:
	adrp	x8, _TWL4030_MODULE_GPIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TWL4030_MODULE_GPIO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_twl4030_sih_setup
	tbnz	w0, #31, LBB0_25
; %bb.19:
	str	w23, [x20]
	b	LBB0_3
LBB0_20:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh25:
	adrp	x8, _ENXIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_22:
	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_23:
	str	x23, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	str	xzr, [x20, #16]
	mov	x0, x19
	bl	_gpio_twl4030_remove
	b	LBB0_22
LBB0_24:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_25:
	mov	x23, x0
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.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	"can't dispatch IRQs from modules\n"

	.comm	_TWL4030_GPIO_MAX,8,3           ; @TWL4030_GPIO_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to alloc irq_descs\n"

	.comm	_irq_domain_simple_ops,4,2      ; @irq_domain_simple_ops
	.comm	_TWL4030_MODULE_GPIO,4,2        ; @TWL4030_MODULE_GPIO
	.comm	_template_chip,24,3             ; @template_chip
l_.str.2:                               ; @.str.2
	.asciz	"Platform data is missing\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"pullups %.05x %.05x --> %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"debounce %.03x %.01x --> %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"could not register gpiochip, %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"setup --> %d\n"

	.no_dead_strip	_gpio_twl4030_probe
.subsections_via_symbols
