	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm5022_muic_i2c_probe
_sm5022_muic_i2c_probe:                 ## @sm5022_muic_i2c_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
	cmpq	$0, 8(%rdi)
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 8(%r14)
	movq	%rbx, 64(%r14)
	movl	(%rbx), %eax
	movl	%eax, 32(%r14)
	movq	_sm5502_muic_irqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	_sm5502_reg_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 56(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 48(%r14)
	leaq	44(%r14), %rdi
	callq	_mutex_init
	leaq	40(%r14), %rdi
	movq	_sm5502_muic_irq_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_sm5502_muic_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 36(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	36(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	32(%r14), %esi
	movl	36(%r14), %edi
	leaq	20(%r14), %r9
	movq	_sm5502_muic_irq_chip@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	movl	32(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_8:
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.9:
	movl	$8, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %r15
	movl	20(%r14), %edi
	movl	-4(%r15,%r12), %esi
	callq	_regmap_irq_get_virq
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, -8(%r15,%r12)
	movq	8(%r14), %rdi
	movq	_sm5502_muic_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r8d
	movl	(%r15,%r12), %r9d
	movq	%r14, (%rsp)
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jne	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$12, %r12
	cmpq	%rax, %r13
	jl	LBB0_10
LBB0_13:
	movq	8(%r14), %rdi
	movq	_sm5502_extcon_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_devm_extcon_dev_allocate
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	16(%r14), %esi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_21:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	movl	-4(%r15,%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_22:
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	_sm5502_muic_detect_cable_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_system_power_efficient_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DELAY_MS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
	movq	%r14, %rdi
	callq	_sm5502_init_dev_type
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sm5502_muic_irqs,8,3           ## @sm5502_muic_irqs
	.comm	_sm5502_reg_data,8,3            ## @sm5502_reg_data
	.comm	_sm5502_muic_irq_work,4,2       ## @sm5502_muic_irq_work
	.comm	_sm5502_muic_regmap_config,4,2  ## @sm5502_muic_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate register map: %d\n"

	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_sm5502_muic_irq_chip,4,2       ## @sm5502_muic_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"failed to request IRQ %d: %d\n"

	.comm	_sm5502_muic_irq_handler,4,2    ## @sm5502_muic_irq_handler
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
L_.str.2:                               ## @.str.2
	.asciz	"failed: irq request (IRQ: %d, error :%d)\n"

	.comm	_sm5502_extcon_cable,4,2        ## @sm5502_extcon_cable
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate memory for extcon\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to register extcon device\n"

	.comm	_sm5502_muic_detect_cable_wq,4,2 ## @sm5502_muic_detect_cable_wq
	.comm	_system_power_efficient_wq,4,2  ## @system_power_efficient_wq
	.comm	_DELAY_MS_DEFAULT,4,2           ## @DELAY_MS_DEFAULT
	.no_dead_strip	_sm5022_muic_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm5022_muic_i2c_probe
_sm5022_muic_i2c_probe:                 ; @sm5022_muic_i2c_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	x21, x0
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_15
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x21, [x19, #8]
	str	x20, [x19, #64]
	ldr	w8, [x20]
	str	w8, [x19, #32]
Lloh3:
	adrp	x8, _sm5502_muic_irqs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sm5502_muic_irqs@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	str	x0, [x19, #24]
	bl	_ARRAY_SIZE
	str	w0, [x19]
Lloh6:
	adrp	x8, _sm5502_reg_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sm5502_reg_data@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	str	x0, [x19, #56]
	bl	_ARRAY_SIZE
	str	x0, [x19, #48]
	add	x0, x19, #44
	bl	_mutex_init
	add	x0, x19, #40
Lloh9:
	adrp	x8, _sm5502_muic_irq_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sm5502_muic_irq_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh12:
	adrp	x1, _sm5502_muic_regmap_config@GOTPAGE
Lloh13:
	ldr	x1, [x1, _sm5502_muic_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #36]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19, #8]
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_4:
Lloh16:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x21, _IRQF_ONESHOT@GOTPAGE
Lloh20:
	ldr	x21, [x21, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh21:
	adrp	x10, _IRQF_SHARED@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IRQF_SHARED@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh23:
	ldr	w9, [x10]
	orr	w2, w8, w9
	ldp	w1, w0, [x19, #32]
	add	x5, x19, #20
Lloh24:
	adrp	x4, _sm5502_muic_irq_chip@GOTPAGE
Lloh25:
	ldr	x4, [x4, _sm5502_muic_irq_chip@GOTPAGEOFF]
	mov	w3, #0
	bl	_regmap_add_irq_chip
	cbz	w0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	x0, [x19, #8]
	ldr	w8, [x19, #32]
	stp	x8, x20, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_17
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x22, #0
	mov	x23, #0
Lloh28:
	adrp	x24, _sm5502_muic_irq_handler@GOTPAGE
Lloh29:
	ldr	x24, [x24, _sm5502_muic_irq_handler@GOTPAGEOFF]
Lloh30:
	adrp	x25, _IRQF_NO_SUSPEND@GOTPAGE
Lloh31:
	ldr	x25, [x25, _IRQF_NO_SUSPEND@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #24]
	ldr	w0, [x19, #20]
	add	x20, x26, x22
	ldr	w1, [x20, #4]
	bl	_regmap_irq_get_virq
	cmp	w0, #0
	b.le	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x0
	str	w0, [x20]
	ldr	x0, [x19, #8]
	ldr	w3, [x24]
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w4, w9, w8
	ldr	w5, [x20, #8]
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #12
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_12:
	ldr	x0, [x19, #8]
Lloh32:
	adrp	x8, _sm5502_extcon_cable@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sm5502_extcon_cable@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_devm_extcon_dev_allocate
	str	w0, [x19, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_18
; %bb.13:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_14:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	mov	x0, x20
	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_18:
	ldr	w1, [x19, #16]
	bl	_devm_extcon_dev_register
	cbz	w0, LBB0_21
; %bb.19:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_20:
	mov	x20, x0
	ldr	x0, [x19, #8]
	add	x8, x26, x22
	ldr	w8, [x8, #4]
	stp	x8, x20, [sp]
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_21:
	add	x20, x19, #4
Lloh45:
	adrp	x8, _sm5502_muic_detect_cable_wq@GOTPAGE
Lloh46:
	ldr	x8, [x8, _sm5502_muic_detect_cable_wq@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_DELAYED_WORK
Lloh48:
	adrp	x8, _system_power_efficient_wq@GOTPAGE
Lloh49:
	ldr	x8, [x8, _system_power_efficient_wq@GOTPAGEOFF]
Lloh50:
	ldr	w21, [x8]
Lloh51:
	adrp	x8, _DELAY_MS_DEFAULT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DELAY_MS_DEFAULT@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_queue_delayed_work
	mov	x0, x19
	bl	_sm5502_init_dev_type
	mov	w20, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sm5502_muic_irqs,8,3           ; @sm5502_muic_irqs
	.comm	_sm5502_reg_data,8,3            ; @sm5502_reg_data
	.comm	_sm5502_muic_irq_work,4,2       ; @sm5502_muic_irq_work
	.comm	_sm5502_muic_regmap_config,4,2  ; @sm5502_muic_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate register map: %d\n"

	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_sm5502_muic_irq_chip,4,2       ; @sm5502_muic_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"failed to request IRQ %d: %d\n"

	.comm	_sm5502_muic_irq_handler,4,2    ; @sm5502_muic_irq_handler
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
l_.str.2:                               ; @.str.2
	.asciz	"failed: irq request (IRQ: %d, error :%d)\n"

	.comm	_sm5502_extcon_cable,4,2        ; @sm5502_extcon_cable
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate memory for extcon\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to register extcon device\n"

	.comm	_sm5502_muic_detect_cable_wq,4,2 ; @sm5502_muic_detect_cable_wq
	.comm	_system_power_efficient_wq,4,2  ; @system_power_efficient_wq
	.comm	_DELAY_MS_DEFAULT,4,2           ; @DELAY_MS_DEFAULT
	.no_dead_strip	_sm5022_muic_i2c_probe
.subsections_via_symbols
