	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_probe
_tc3589x_probe:                         ## @tc3589x_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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %r12
	movq	8(%rdi), %r15
	movq	%r12, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
LBB0_4:
	movl	16(%r14), %edi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_I2C_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	%r12, 8(%r15)
	movq	%r14, 16(%r15)
	movq	%r13, 24(%r15)
	movl	$-129, %eax
	addl	-44(%rbp), %eax
	movl	$24, %ecx
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.10:
	cltq
	leaq	L_switch.table.tc3589x_probe(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_11:
	movl	%ecx, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	callq	_tc3589x_chip_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_tc3589x_irq_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movq	_tc3589x_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r15, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_1:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_tc3589x_of_probe
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdi
	callq	_tc3589x_device_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movl	%r14d, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data or DT found\n"

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_I2C_BLOCK,4,2   ## @I2C_FUNC_SMBUS_I2C_BLOCK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tc3589x_irq,4,2                ## @tc3589x_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"tc3589x"

L_.str.2:                               ## @.str.2
	.asciz	"failed to request IRQ: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to add child devices\n"

	.no_dead_strip	_tc3589x_probe
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.tc3589x_probe
L_switch.table.tc3589x_probe:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	24                              ## 0x18
	.long	20                              ## 0x14

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_probe
_tc3589x_probe:                         ; @tc3589x_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	x20, x1
	mov	x21, x0
	mov	x22, x0
	ldr	x19, [x22, #8]!
	mov	x0, x22
	bl	_dev_get_platdata
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x0
	ldr	w8, [x20]
	str	w8, [sp, #12]
LBB0_2:
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
	ldr	w0, [x21, #16]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_I2C_BLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_I2C_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	add	x0, x0, #32
	bl	_mutex_init
	stp	x22, x21, [x20, #8]
	str	x23, [x20, #24]
	ldr	w8, [sp, #12]
	sub	w8, w8, #129
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.5:
Lloh9:
	adrp	x9, l_switch.table.tc3589x_probe@PAGE
Lloh10:
	add	x9, x9, l_switch.table.tc3589x_probe@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_12
LBB0_6:
	add	x1, sp, #12
	mov	x0, x22
	bl	_tc3589x_of_probe
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x23
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_19
LBB0_8:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_11:
	mov	w8, #24
LBB0_12:
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x20
	bl	_tc3589x_chip_init
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_tc3589x_irq_init
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.14:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _tc3589x_irq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tc3589x_irq@GOTPAGEOFF]
Lloh19:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	ldr	w8, [x9]
Lloh23:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh26:
	adrp	x4, l_.str.1@PAGE
Lloh27:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	ldr	x0, [x20, #8]
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	x0, x20
	bl	_tc3589x_device_init
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.17:
	ldr	x0, [x20, #8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_18:
	bl	_dev_err
LBB0_19:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data or DT found\n"

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_I2C_BLOCK,4,2   ; @I2C_FUNC_SMBUS_I2C_BLOCK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tc3589x_irq,4,2                ; @tc3589x_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"tc3589x"

l_.str.2:                               ; @.str.2
	.asciz	"failed to request IRQ: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to add child devices\n"

	.no_dead_strip	_tc3589x_probe
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.tc3589x_probe
l_switch.table.tc3589x_probe:
	.long	20                              ; 0x14
	.long	20                              ; 0x14
	.long	24                              ; 0x18
	.long	20                              ; 0x14

.subsections_via_symbols
