	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_usb_extcon_probe
_qcom_usb_extcon_probe:                 ## @qcom_usb_extcon_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, %r14
	leaq	4(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_qcom_usb_extcon_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devm_extcon_dev_allocate
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	16(%r13), %esi
	movq	%r15, %rdi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_USB_ID_DEBOUNCE_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, 12(%r13)
	movq	%r13, %r12
	addq	$8, %r12
	movq	_qcom_usb_extcon_detect_cable@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, (%r13)
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	_qcom_usb_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rdx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rdx), %r8d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r8d
	movl	(%r14), %r9d
	movq	%r13, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	%r12, %rdi
	callq	_qcom_usb_extcon_detect_cable
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ebx
	callq	_dev_err
                                        ## kill: def $ebx killed $ebx def $rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qcom_usb_extcon_cable,4,2      ## @qcom_usb_extcon_cable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate extcon device\n"

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

	.comm	_USB_ID_DEBOUNCE_MS,4,2         ## @USB_ID_DEBOUNCE_MS
L_.str.2:                               ## @.str.2
	.asciz	"usb_id"

	.comm	_qcom_usb_irq_handler,4,2       ## @qcom_usb_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"failed to request handler for ID IRQ\n"

	.no_dead_strip	_qcom_usb_extcon_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_usb_extcon_probe
_qcom_usb_extcon_probe:                 ; @qcom_usb_extcon_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _qcom_usb_extcon_cable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qcom_usb_extcon_cable@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_extcon_dev_allocate
	str	w0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_devm_extcon_dev_register
	tbnz	w0, #31, LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _USB_ID_DEBOUNCE_MS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_ID_DEBOUNCE_MS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	str	w0, [x21, #12]
	add	x23, x21, #8
Lloh14:
	adrp	x1, _qcom_usb_extcon_detect_cable@GOTPAGE
Lloh15:
	ldr	x1, [x1, _qcom_usb_extcon_detect_cable@GOTPAGEOFF]
	mov	x0, x23
	bl	_INIT_DELAYED_WORK
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x22, x0
	str	x0, [x21]
	tbnz	x0, #63, LBB0_4
; %bb.7:
Lloh18:
	adrp	x8, _qcom_usb_irq_handler@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qcom_usb_irq_handler@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	w5, [x20]
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	mov	x0, x23
	bl	_qcom_usb_extcon_detect_cable
	mov	w22, #0
	b	LBB0_4
LBB0_9:
	mov	x22, x0
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qcom_usb_extcon_cable,4,2      ; @qcom_usb_extcon_cable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate extcon device\n"

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

	.comm	_USB_ID_DEBOUNCE_MS,4,2         ; @USB_ID_DEBOUNCE_MS
l_.str.2:                               ; @.str.2
	.asciz	"usb_id"

	.comm	_qcom_usb_irq_handler,4,2       ; @qcom_usb_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"failed to request handler for ID IRQ\n"

	.no_dead_strip	_qcom_usb_extcon_probe
.subsections_via_symbols
