	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extcon_cros_ec_probe
_extcon_cros_ec_probe:                  ## @extcon_cros_ec_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, %r15
	leaq	8(%rdi), %r14
	movl	16(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	8(%r15), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 32(%rax)
	movq	%r13, 16(%rax)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	-44(%rbp), %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_7:
	movl	(%r15), %eax
LBB0_8:
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_cros_ec_pd_get_num_ports
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	cmpl	%ebx, (%r12)
	jge	LBB0_11
## %bb.12:
	movq	_usb_type_c_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_extcon_dev_allocate
	movl	%eax, 28(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_20
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	28(%r12), %esi
	movq	%r14, %rdi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	28(%r12), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXTCON_PROP_USB_VBUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXTCON_PROP_USB_TYPEC_POLARITY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movq	_EXTCON_DISP_DP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXTCON_PROP_USB_SS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	callq	_extcon_set_property_capability
	movl	28(%r12), %edi
	movl	(%r13), %esi
	movq	_EXTCON_PROP_DISP_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_extcon_set_property_capability
	movq	_DR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	$0, 4(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	_extcon_cros_ec_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %r15
	addq	$8, %r15
	movl	%eax, 8(%r12)
	movq	16(%r12), %rdi
	movq	%r15, %rsi
	callq	_blocking_notifier_chain_register
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_extcon_cros_ec_detect_cable
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_20
## %bb.19:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r12), %rdi
	movq	%r15, %rsi
	callq	_blocking_notifier_chain_unregister
	movl	%r13d, %ebx
	jmp	LBB0_20
LBB0_15:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_17:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"google,usb-port-id"

L_.str.1:                               ## @.str.1
	.asciz	"Missing google,usb-port-id property\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed getting number of ports! ret = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"This system only supports %d ports\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_usb_type_c_cable,4,2           ## @usb_type_c_cable
L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate extcon device\n"

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

	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.comm	_EXTCON_PROP_USB_VBUS,4,2       ## @EXTCON_PROP_USB_VBUS
	.comm	_EXTCON_USB_HOST,4,2            ## @EXTCON_USB_HOST
	.comm	_EXTCON_PROP_USB_TYPEC_POLARITY,4,2 ## @EXTCON_PROP_USB_TYPEC_POLARITY
	.comm	_EXTCON_DISP_DP,4,2             ## @EXTCON_DISP_DP
	.comm	_EXTCON_PROP_USB_SS,4,2         ## @EXTCON_PROP_USB_SS
	.comm	_EXTCON_PROP_DISP_HPD,4,2       ## @EXTCON_PROP_DISP_HPD
	.comm	_DR_NONE,4,2                    ## @DR_NONE
	.comm	_extcon_cros_ec_event,4,2       ## @extcon_cros_ec_event
L_.str.6:                               ## @.str.6
	.asciz	"failed to register notifier\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to detect initial cable state\n"

	.no_dead_strip	_extcon_cros_ec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extcon_cros_ec_probe
_extcon_cros_ec_probe:                  ; @extcon_cros_ec_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	w0, [x0, #16]
	bl	_dev_get_drvdata
	mov	x23, x0
	mov	x19, x21
	ldr	x22, [x19, #8]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #32]
	str	x23, [x0, #16]
	cbz	x22, LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_13
; %bb.3:
	ldr	w8, [sp, #12]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21]
LBB0_5:
	str	w8, [x20]
	mov	x0, x20
	bl	_cros_ec_pd_get_num_ports
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	w8, [x20]
	cmp	w8, w22
	b.ge	LBB0_11
; %bb.7:
Lloh5:
	adrp	x8, _usb_type_c_cable@GOTPAGE
Lloh6:
	ldr	x8, [x8, _usb_type_c_cable@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_extcon_dev_allocate
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.8:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_11:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_13:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
LBB0_15:
	mov	x0, x22
	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_16:
	ldr	w1, [x20, #28]
	mov	x0, x19
	bl	_devm_extcon_dev_register
	tbnz	w0, #31, LBB0_20
; %bb.17:
	ldr	w0, [x20, #28]
Lloh20:
	adrp	x22, _EXTCON_USB@GOTPAGE
Lloh21:
	ldr	x22, [x22, _EXTCON_USB@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh22:
	adrp	x23, _EXTCON_PROP_USB_VBUS@GOTPAGE
Lloh23:
	ldr	x23, [x23, _EXTCON_PROP_USB_VBUS@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
Lloh24:
	adrp	x24, _EXTCON_USB_HOST@GOTPAGE
Lloh25:
	ldr	x24, [x24, _EXTCON_USB_HOST@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x23]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
	ldr	w1, [x22]
Lloh26:
	adrp	x23, _EXTCON_PROP_USB_TYPEC_POLARITY@GOTPAGE
Lloh27:
	ldr	x23, [x23, _EXTCON_PROP_USB_TYPEC_POLARITY@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
	ldr	w1, [x24]
	ldr	w2, [x23]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
Lloh28:
	adrp	x25, _EXTCON_DISP_DP@GOTPAGE
Lloh29:
	ldr	x25, [x25, _EXTCON_DISP_DP@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x23]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
	ldr	w1, [x22]
Lloh30:
	adrp	x22, _EXTCON_PROP_USB_SS@GOTPAGE
Lloh31:
	ldr	x22, [x22, _EXTCON_PROP_USB_SS@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
	ldr	w1, [x24]
	ldr	w2, [x22]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
	ldr	w1, [x25]
	ldr	w2, [x22]
	bl	_extcon_set_property_capability
	ldr	w0, [x20, #28]
	ldr	w1, [x25]
Lloh32:
	adrp	x8, _EXTCON_PROP_DISP_HPD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EXTCON_PROP_DISP_HPD@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	bl	_extcon_set_property_capability
Lloh35:
	adrp	x8, _DR_NONE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DR_NONE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	str	wzr, [x20, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh38:
	adrp	x8, _extcon_cros_ec_event@GOTPAGE
Lloh39:
	ldr	x8, [x8, _extcon_cros_ec_event@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #8]!
	ldr	x0, [x21, #8]
	mov	x1, x21
	bl	_blocking_notifier_chain_register
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x0, x20
	mov	w1, #1
	bl	_extcon_cros_ec_detect_cable
	tbnz	w0, #31, LBB0_22
; %bb.19:
	mov	w22, #0
	b	LBB0_15
LBB0_20:
	mov	x22, x0
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_21:
	mov	x22, x0
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_22:
	mov	x22, x0
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
	mov	x1, x21
	bl	_blocking_notifier_chain_unregister
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"google,usb-port-id"

l_.str.1:                               ; @.str.1
	.asciz	"Missing google,usb-port-id property\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed getting number of ports! ret = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"This system only supports %d ports\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_usb_type_c_cable,4,2           ; @usb_type_c_cable
l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate extcon device\n"

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

	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.comm	_EXTCON_PROP_USB_VBUS,4,2       ; @EXTCON_PROP_USB_VBUS
	.comm	_EXTCON_USB_HOST,4,2            ; @EXTCON_USB_HOST
	.comm	_EXTCON_PROP_USB_TYPEC_POLARITY,4,2 ; @EXTCON_PROP_USB_TYPEC_POLARITY
	.comm	_EXTCON_DISP_DP,4,2             ; @EXTCON_DISP_DP
	.comm	_EXTCON_PROP_USB_SS,4,2         ; @EXTCON_PROP_USB_SS
	.comm	_EXTCON_PROP_DISP_HPD,4,2       ; @EXTCON_PROP_DISP_HPD
	.comm	_DR_NONE,4,2                    ; @DR_NONE
	.comm	_extcon_cros_ec_event,4,2       ; @extcon_cros_ec_event
l_.str.6:                               ; @.str.6
	.asciz	"failed to register notifier\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to detect initial cable state\n"

	.no_dead_strip	_extcon_cros_ec_probe
.subsections_via_symbols
