	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_usb_probe
_palmas_usb_probe:                      ## @palmas_usb_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	%rdi, %r13
	movl	8(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_dev_get_platdata
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	(%r13), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	testq	%r15, %r15
	jne	LBB0_9
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movl	%eax, (%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movl	%eax, 4(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movl	%eax, 8(%r14)
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	movl	$1, 8(%r14)
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	(%r15), %eax
	movl	%eax, (%r14)
LBB0_11:
	movq	_GPIOD_IN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 80(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	80(%r14), %rdi
	jmp	LBB0_15
LBB0_13:
	movl	(%r15), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	56(%r14), %rdi
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_16:
	cmpl	$0, 4(%r14)
	je	LBB0_19
## %bb.17:
	cmpq	$0, 80(%r14)
	je	LBB0_19
## %bb.18:
	movl	$0, 4(%r14)
	movl	$1, 12(%r14)
LBB0_19:
	cmpl	$0, 8(%r14)
	je	LBB0_22
## %bb.20:
	cmpq	$0, 56(%r14)
	je	LBB0_22
## %bb.21:
	movl	$0, 8(%r14)
	movl	$1, 16(%r14)
LBB0_22:
	cmpl	$0, 12(%r14)
	je	LBB0_28
## %bb.23:
	leaq	L_.str.8(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_USB_GPIO_DEBOUNCE_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_26
LBB0_25:
	movl	-44(%rbp), %eax
LBB0_26:
	movq	80(%r14), %rdi
	imull	$1000, %eax, %esi               ## imm = 0x3E8
	callq	_gpiod_set_debounce
	testl	%eax, %eax
	jns	LBB0_28
## %bb.27:
	movl	-44(%rbp), %edi
	callq	_msecs_to_jiffies
	movl	%eax, 112(%r14)
LBB0_28:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	$48, %r15
	movq	_palmas_gpio_id_detect@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movq	%r14, 8(%r12)
	movq	%r12, 104(%r14)
	movq	%r13, 72(%r14)
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_palmas_usb_wakeup
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_palmas_extcon_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_devm_extcon_dev_allocate
	movq	%rax, 96(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_30:
	movq	96(%r14), %rsi
	movq	%r13, %rdi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
LBB0_32:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_33:
	cmpl	$0, 4(%r14)
	je	LBB0_36
## %bb.34:
	movl	(%r12), %edi
	movq	_PALMAS_ID_OTG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_irq_get_virq
	movq	%rax, 88(%r14)
	movl	(%r12), %edi
	movq	_PALMAS_ID_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_irq_get_virq
	movl	%eax, 20(%r14)
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movq	72(%r14), %rdi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	%r14, (%rsp)
	movq	_palmas_id_irq_handler@GOTPCREL(%rip), %rcx
	leaq	L_.str.11(%rip), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jns	LBB0_40
## %bb.35:
	movl	%eax, %ebx
	movl	20(%r14), %edx
	jmp	LBB0_43
LBB0_36:
	cmpl	$0, 12(%r14)
	je	LBB0_40
## %bb.37:
	movq	80(%r14), %rdi
	callq	_gpiod_to_irq
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	jns	LBB0_39
## %bb.38:
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%r14), %ebx
	jmp	LBB0_8
LBB0_39:
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	%r14, (%rsp)
	movq	_palmas_gpio_id_irq_handler@GOTPCREL(%rip), %rcx
	leaq	L_.str.11(%rip), %r9
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_49
LBB0_40:
	cmpl	$0, 8(%r14)
	je	LBB0_44
## %bb.41:
	movl	(%r12), %edi
	movq	_PALMAS_VBUS_OTG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_irq_get_virq
	movq	%rax, 64(%r14)
	movl	(%r12), %edi
	movq	_PALMAS_VBUS_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_irq_get_virq
	movl	%eax, 32(%r14)
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movq	72(%r14), %rdi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	%r14, (%rsp)
	movq	_palmas_vbus_irq_handler@GOTPCREL(%rip), %rcx
	leaq	L_.str.15(%rip), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jns	LBB0_51
## %bb.42:
	movl	%eax, %ebx
	movl	32(%r14), %edx
LBB0_43:
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_44:
	cmpl	$0, 16(%r14)
	je	LBB0_51
## %bb.45:
	movq	_PALMAS_PU_PD_OD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r8d
	shll	%cl, %r8d
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_palmas_update_bits
	testl	%eax, %eax
	js	LBB0_48
## %bb.46:
	movl	(%r12), %edi
	movq	_PALMAS_VBUS_OTG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_irq_get_virq
	movq	%rax, 64(%r14)
	movq	56(%r14), %rdi
	callq	_gpiod_to_irq
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	jns	LBB0_50
## %bb.47:
	leaq	L_.str.17(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	40(%r14), %ebx
	jmp	LBB0_8
LBB0_48:
	movl	%eax, %ebx
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_32
LBB0_49:
	movl	%eax, %ebx
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_32
LBB0_50:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	%r14, (%rsp)
	movq	_palmas_vbus_irq_handler@GOTPCREL(%rip), %rcx
	leaq	L_.str.15(%rip), %r9
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_54
LBB0_51:
	movq	%r14, %rdi
	callq	_palmas_enable_irq
	cmpl	$0, 16(%r14)
	je	LBB0_53
## %bb.52:
	movl	40(%r14), %edi
	movq	%r14, %rsi
	callq	_palmas_vbus_irq_handler
LBB0_53:
	movq	%r15, %rdi
	callq	_palmas_gpio_id_detect
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_54:
	movl	%eax, %ebx
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get valid parent\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ti,wakeup"

L_.str.2:                               ## @.str.2
	.asciz	"ti,enable-id-detection"

L_.str.3:                               ## @.str.3
	.asciz	"ti,enable-vbus-detection"

L_.str.4:                               ## @.str.4
	.asciz	"id"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.5:                               ## @.str.5
	.asciz	"failed to get id gpio\n"

L_.str.6:                               ## @.str.6
	.asciz	"vbus"

L_.str.7:                               ## @.str.7
	.asciz	"failed to get vbus gpio\n"

L_.str.8:                               ## @.str.8
	.asciz	"debounce-delay-ms"

	.comm	_USB_GPIO_DEBOUNCE_MS,4,2       ## @USB_GPIO_DEBOUNCE_MS
	.comm	_palmas_extcon_cable,4,2        ## @palmas_extcon_cable
L_.str.9:                               ## @.str.9
	.asciz	"failed to allocate extcon device\n"

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

	.comm	_PALMAS_ID_OTG_IRQ,4,2          ## @PALMAS_ID_OTG_IRQ
	.comm	_PALMAS_ID_IRQ,4,2              ## @PALMAS_ID_IRQ
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.11:                              ## @.str.11
	.asciz	"palmas_usb_id"

L_.str.12:                              ## @.str.12
	.asciz	"can't get IRQ %d, err %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"failed to get id irq\n"

L_.str.14:                              ## @.str.14
	.asciz	"failed to request handler for id irq\n"

	.comm	_PALMAS_VBUS_OTG_IRQ,4,2        ## @PALMAS_VBUS_OTG_IRQ
	.comm	_PALMAS_VBUS_IRQ,4,2            ## @PALMAS_VBUS_IRQ
L_.str.15:                              ## @.str.15
	.asciz	"palmas_usb_vbus"

	.comm	_PALMAS_PU_PD_OD_BASE,4,2       ## @PALMAS_PU_PD_OD_BASE
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT,4,2 ## @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT
L_.str.16:                              ## @.str.16
	.asciz	"can't remux GPIO1\n"

L_.str.17:                              ## @.str.17
	.asciz	"failed to get vbus irq\n"

L_.str.18:                              ## @.str.18
	.asciz	"failed to request handler for vbus irq\n"

	.no_dead_strip	_palmas_usb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_usb_probe
_palmas_usb_probe:                      ; @palmas_usb_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w0, [x0, #8]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x21, LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_27
; %bb.2:
	mov	x20, x0
	cbz	x22, LBB0_6
; %bb.3:
	cbnz	x23, LBB0_6
; %bb.4:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	w0, [x20]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	w0, [x20, #4]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	w0, [x20, #8]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_6:
	movi.2s	v0, #1
	str	d0, [x20]
	mov	w8, #1
	str	w8, [x20, #8]
	cbz	x23, LBB0_8
; %bb.7:
	ldr	w8, [x23]
	str	w8, [x20]
LBB0_8:
Lloh13:
	adrp	x23, _GPIOD_IN@GOTPAGE
Lloh14:
	ldr	x23, [x23, _GPIOD_IN@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #80]
	b	LBB0_12
LBB0_10:
	ldr	w2, [x23]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #56]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_13:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.14:
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_16
; %bb.15:
	str	wzr, [x20, #4]
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_16:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_19
; %bb.17:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_19
; %bb.18:
	str	wzr, [x20, #8]
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_19:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_25
; %bb.20:
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #28
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_22
; %bb.21:
Lloh25:
	adrp	x8, _USB_GPIO_DEBOUNCE_MS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _USB_GPIO_DEBOUNCE_MS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	b	LBB0_23
LBB0_22:
	ldr	w8, [sp, #28]
LBB0_23:
	ldr	x0, [x20, #80]
	mov	w9, #1000
	mul	w1, w8, w9
	bl	_gpiod_set_debounce
	tbz	w0, #31, LBB0_25
; %bb.24:
	ldr	w0, [sp, #28]
	bl	_msecs_to_jiffies
	str	w0, [x20, #112]
LBB0_25:
	add	x22, x20, #48
Lloh28:
	adrp	x1, _palmas_gpio_id_detect@GOTPAGE
Lloh29:
	ldr	x1, [x1, _palmas_gpio_id_detect@GOTPAGEOFF]
	mov	x0, x22
	bl	_INIT_DELAYED_WORK
	str	x20, [x21, #8]
	str	x21, [x20, #104]
	str	x19, [x20, #72]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_palmas_usb_wakeup
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh30:
	adrp	x8, _palmas_extcon_cable@GOTPAGE
Lloh31:
	ldr	x8, [x8, _palmas_extcon_cable@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_extcon_dev_allocate
	str	x0, [x20, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.26:
Lloh33:
	adrp	x1, l_.str.9@PAGE
Lloh34:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_27:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_29:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_30:
	ldr	x1, [x20, #96]
	mov	x0, x19
	bl	_devm_extcon_dev_register
	cbz	w0, LBB0_33
; %bb.31:
	mov	x23, x0
Lloh37:
	adrp	x1, l_.str.10@PAGE
Lloh38:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_32:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_29
LBB0_33:
	ldr	w8, [x20, #4]
Lloh39:
	adrp	x26, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh40:
	ldr	x26, [x26, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh41:
	adrp	x25, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh42:
	ldr	x25, [x25, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh43:
	adrp	x24, _IRQF_ONESHOT@GOTPAGE
Lloh44:
	ldr	x24, [x24, _IRQF_ONESHOT@GOTPAGEOFF]
	cbz	w8, LBB0_36
; %bb.34:
	ldr	w0, [x21]
Lloh45:
	adrp	x8, _PALMAS_ID_OTG_IRQ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PALMAS_ID_OTG_IRQ@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_regmap_irq_get_virq
	str	x0, [x20, #88]
	ldr	w0, [x21]
Lloh48:
	adrp	x8, _PALMAS_ID_IRQ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PALMAS_ID_IRQ@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_regmap_irq_get_virq
	mov	x1, x0
	str	w1, [x20, #20]
	ldr	x0, [x20, #72]
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w4, w8, w9
Lloh51:
	adrp	x3, _palmas_id_irq_handler@GOTPAGE
Lloh52:
	ldr	x3, [x3, _palmas_id_irq_handler@GOTPAGEOFF]
Lloh53:
	adrp	x5, l_.str.11@PAGE
Lloh54:
	add	x5, x5, l_.str.11@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbz	w0, #31, LBB0_40
; %bb.35:
	mov	x23, x0
	ldr	w8, [x20, #20]
	stp	x8, x23, [sp]
Lloh55:
	adrp	x1, l_.str.12@PAGE
Lloh56:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_32
LBB0_36:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_40
; %bb.37:
	ldr	x0, [x20, #80]
	bl	_gpiod_to_irq
	str	x0, [x20, #24]
	tbz	x0, #63, LBB0_39
; %bb.38:
Lloh57:
	adrp	x1, l_.str.13@PAGE
Lloh58:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w23, [x20, #24]
	b	LBB0_29
LBB0_39:
	mov	x1, x0
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w4, w8, w9
Lloh59:
	adrp	x3, _palmas_gpio_id_irq_handler@GOTPAGE
Lloh60:
	ldr	x3, [x3, _palmas_gpio_id_irq_handler@GOTPAGEOFF]
Lloh61:
	adrp	x5, l_.str.11@PAGE
Lloh62:
	add	x5, x5, l_.str.11@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_48
LBB0_40:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_43
; %bb.41:
	ldr	w0, [x21]
Lloh63:
	adrp	x8, _PALMAS_VBUS_OTG_IRQ@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PALMAS_VBUS_OTG_IRQ@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	bl	_regmap_irq_get_virq
	str	x0, [x20, #64]
	ldr	w0, [x21]
Lloh66:
	adrp	x8, _PALMAS_VBUS_IRQ@GOTPAGE
Lloh67:
	ldr	x8, [x8, _PALMAS_VBUS_IRQ@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_regmap_irq_get_virq
	mov	x1, x0
	str	w1, [x20, #32]
	ldr	x0, [x20, #72]
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w4, w8, w9
Lloh69:
	adrp	x3, _palmas_vbus_irq_handler@GOTPAGE
Lloh70:
	ldr	x3, [x3, _palmas_vbus_irq_handler@GOTPAGEOFF]
Lloh71:
	adrp	x5, l_.str.15@PAGE
Lloh72:
	add	x5, x5, l_.str.15@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbz	w0, #31, LBB0_50
; %bb.42:
	mov	x23, x0
	ldr	w8, [x20, #32]
	stp	x8, x23, [sp]
Lloh73:
	adrp	x1, l_.str.12@PAGE
Lloh74:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_29
LBB0_43:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_50
; %bb.44:
Lloh75:
	adrp	x8, _PALMAS_PU_PD_OD_BASE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _PALMAS_PU_PD_OD_BASE@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
Lloh78:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1@GOTPAGE
Lloh79:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1@GOTPAGEOFF]
Lloh80:
	ldr	w2, [x8]
Lloh81:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK@GOTPAGE
Lloh82:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK@GOTPAGEOFF]
Lloh83:
	ldr	w3, [x8]
Lloh84:
	adrp	x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w4, w9, w8
	mov	x0, x21
	bl	_palmas_update_bits
	tbnz	w0, #31, LBB0_47
; %bb.45:
	ldr	w0, [x21]
Lloh87:
	adrp	x8, _PALMAS_VBUS_OTG_IRQ@GOTPAGE
Lloh88:
	ldr	x8, [x8, _PALMAS_VBUS_OTG_IRQ@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	bl	_regmap_irq_get_virq
	str	x0, [x20, #64]
	ldr	x0, [x20, #56]
	bl	_gpiod_to_irq
	str	x0, [x20, #40]
	tbz	x0, #63, LBB0_49
; %bb.46:
Lloh90:
	adrp	x1, l_.str.17@PAGE
Lloh91:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w23, [x20, #40]
	b	LBB0_29
LBB0_47:
	mov	x23, x0
Lloh92:
	adrp	x1, l_.str.16@PAGE
Lloh93:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_32
LBB0_48:
	mov	x23, x0
Lloh94:
	adrp	x1, l_.str.14@PAGE
Lloh95:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_32
LBB0_49:
	mov	x1, x0
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w4, w8, w9
Lloh96:
	adrp	x3, _palmas_vbus_irq_handler@GOTPAGE
Lloh97:
	ldr	x3, [x3, _palmas_vbus_irq_handler@GOTPAGEOFF]
Lloh98:
	adrp	x5, l_.str.15@PAGE
Lloh99:
	add	x5, x5, l_.str.15@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_53
LBB0_50:
	mov	x0, x20
	bl	_palmas_enable_irq
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_52
; %bb.51:
	ldr	w0, [x20, #40]
	mov	x1, x20
	bl	_palmas_vbus_irq_handler
LBB0_52:
	mov	x0, x22
	bl	_palmas_gpio_id_detect
	mov	x0, x19
	mov	w1, #1
	bl	_device_set_wakeup_capable
	mov	w23, #0
	b	LBB0_29
LBB0_53:
	mov	x23, x0
Lloh100:
	adrp	x1, l_.str.18@PAGE
Lloh101:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpAdd	Lloh100, Lloh101
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get valid parent\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ti,wakeup"

l_.str.2:                               ; @.str.2
	.asciz	"ti,enable-id-detection"

l_.str.3:                               ; @.str.3
	.asciz	"ti,enable-vbus-detection"

l_.str.4:                               ; @.str.4
	.asciz	"id"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.5:                               ; @.str.5
	.asciz	"failed to get id gpio\n"

l_.str.6:                               ; @.str.6
	.asciz	"vbus"

l_.str.7:                               ; @.str.7
	.asciz	"failed to get vbus gpio\n"

l_.str.8:                               ; @.str.8
	.asciz	"debounce-delay-ms"

	.comm	_USB_GPIO_DEBOUNCE_MS,4,2       ; @USB_GPIO_DEBOUNCE_MS
	.comm	_palmas_extcon_cable,4,2        ; @palmas_extcon_cable
l_.str.9:                               ; @.str.9
	.asciz	"failed to allocate extcon device\n"

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

	.comm	_PALMAS_ID_OTG_IRQ,4,2          ; @PALMAS_ID_OTG_IRQ
	.comm	_PALMAS_ID_IRQ,4,2              ; @PALMAS_ID_IRQ
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.11:                              ; @.str.11
	.asciz	"palmas_usb_id"

l_.str.12:                              ; @.str.12
	.asciz	"can't get IRQ %d, err %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"failed to get id irq\n"

l_.str.14:                              ; @.str.14
	.asciz	"failed to request handler for id irq\n"

	.comm	_PALMAS_VBUS_OTG_IRQ,4,2        ; @PALMAS_VBUS_OTG_IRQ
	.comm	_PALMAS_VBUS_IRQ,4,2            ; @PALMAS_VBUS_IRQ
l_.str.15:                              ; @.str.15
	.asciz	"palmas_usb_vbus"

	.comm	_PALMAS_PU_PD_OD_BASE,4,2       ; @PALMAS_PU_PD_OD_BASE
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK
	.comm	_PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT,4,2 ; @PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT
l_.str.16:                              ; @.str.16
	.asciz	"can't remux GPIO1\n"

l_.str.17:                              ; @.str.17
	.asciz	"failed to get vbus irq\n"

l_.str.18:                              ; @.str.18
	.asciz	"failed to request handler for vbus irq\n"

	.no_dead_strip	_palmas_usb_probe
.subsections_via_symbols
