	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_gpio_probe
_tc3589x_gpio_probe:                    ## @tc3589x_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, %r12
	movl	8(%rdi), %edi
	callq	_dev_get_drvdata
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	%r12, 40(%r15)
	movq	%r13, 32(%r15)
	movq	_template_chip@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm0, (%r15)
	movups	%xmm1, 16(%r15)
	movl	(%r13), %eax
	movl	%eax, 24(%r15)
	movq	%r12, 16(%r15)
	movl	$-1, (%r15)
	movq	%rbx, 8(%r15)
	movq	_TC3589x_RSTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TC3589x_RSTCTRL_GPIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_tc3589x_gpio_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movl	%r14d, %ebx
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_tc3589x_gpio_irq_chip@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add_nested
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
	jmp	LBB0_16
LBB0_15:
	movq	_tc3589x_gpio_irq_chip@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_gpiochip_set_nested_irqchip
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No Device Tree node found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_template_chip,32,3             ## @template_chip
	.comm	_TC3589x_RSTCTRL,4,2            ## @TC3589x_RSTCTRL
	.comm	_TC3589x_RSTCTRL_GPIRST,4,2     ## @TC3589x_RSTCTRL_GPIRST
	.comm	_tc3589x_gpio_irq,4,2           ## @tc3589x_gpio_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"tc3589x-gpio"

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

L_.str.3:                               ## @.str.3
	.asciz	"unable to add gpiochip: %d\n"

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

	.no_dead_strip	_tc3589x_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_gpio_probe
_tc3589x_gpio_probe:                    ; @tc3589x_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	x19, x0
	ldr	w0, [x0, #8]
	bl	_dev_get_drvdata
	ldr	x23, [x19]
	cbz	x23, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	add	x0, x0, #48
	bl	_mutex_init
	stp	x22, x19, [x21, #32]
Lloh3:
	adrp	x8, _template_chip@GOTPAGE
Lloh4:
	ldr	x8, [x8, _template_chip@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [x21]
	ldr	w8, [x22]
	str	w8, [x21, #24]
	mov	w8, #-1
	str	w8, [x21]
	stp	x23, x19, [x21, #8]
Lloh5:
	adrp	x8, _TC3589x_RSTCTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TC3589x_RSTCTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _TC3589x_RSTCTRL_GPIRST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TC3589x_RSTCTRL_GPIRST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #0
	bl	_tc3589x_set_bits
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _tc3589x_gpio_irq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tc3589x_gpio_irq@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x5, l_.str.1@PAGE
Lloh18:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_10
; %bb.5:
	mov	x22, x0
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_14
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	mov	x20, x22
LBB0_13:
	mov	x0, x20
	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_14:
Lloh29:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh30:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
Lloh35:
	adrp	x1, _tc3589x_gpio_irq_chip@GOTPAGE
Lloh36:
	ldr	x1, [x1, _tc3589x_gpio_irq_chip@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #0
	bl	_gpiochip_irqchip_add_nested
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x22
	b	LBB0_13
LBB0_16:
Lloh39:
	adrp	x1, _tc3589x_gpio_irq_chip@GOTPAGE
Lloh40:
	ldr	x1, [x1, _tc3589x_gpio_irq_chip@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x20
	bl	_gpiochip_set_nested_irqchip
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	w20, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No Device Tree node found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_template_chip,32,3             ; @template_chip
	.comm	_TC3589x_RSTCTRL,4,2            ; @TC3589x_RSTCTRL
	.comm	_TC3589x_RSTCTRL_GPIRST,4,2     ; @TC3589x_RSTCTRL_GPIRST
	.comm	_tc3589x_gpio_irq,4,2           ; @tc3589x_gpio_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"tc3589x-gpio"

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

l_.str.3:                               ; @.str.3
	.asciz	"unable to add gpiochip: %d\n"

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

	.no_dead_strip	_tc3589x_gpio_probe
.subsections_via_symbols
