	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcphy_get_mode
_tcphy_get_mode:                        ## @tcphy_get_mode
	.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	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_EXTCON_USB@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_extcon_get_state
	movl	%eax, %r15d
	movq	_EXTCON_DISP_DP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_extcon_get_state
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_MODE_UFP_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %r12d
LBB0_10:
	movq	_EXTCON_PROP_USB_TYPEC_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_extcon_get_property
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_13
LBB0_1:
	movq	_MODE_DFP_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_13
LBB0_4:
	movq	_MODE_DFP_USB@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_MODE_DFP_DP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r13), %r12d
	movq	_EXTCON_PROP_USB_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_extcon_get_property
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%r13d, %r15d
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)
	setne	%al
	movl	%eax, (%r14)
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rcx), %r15d
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, -48(%rbp)
	je	LBB0_10
## %bb.9:
	movq	_MODE_DFP_USB@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_DFP_USB,4,2               ## @MODE_DFP_USB
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.comm	_EXTCON_DISP_DP,4,2             ## @EXTCON_DISP_DP
	.comm	_EXTCON_USB_HOST,4,2            ## @EXTCON_USB_HOST
	.comm	_MODE_UFP_USB,4,2               ## @MODE_UFP_USB
	.comm	_MODE_DFP_DP,4,2                ## @MODE_DFP_DP
	.comm	_EXTCON_PROP_USB_SS,4,2         ## @EXTCON_PROP_USB_SS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get superspeed property failed\n"

	.comm	_EXTCON_PROP_USB_TYPEC_POLARITY,4,2 ## @EXTCON_PROP_USB_TYPEC_POLARITY
L_.str.1:                               ## @.str.1
	.asciz	"get polarity property failed\n"

	.no_dead_strip	_tcphy_get_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcphy_get_mode
_tcphy_get_mode:                        ; @tcphy_get_mode
	.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
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _EXTCON_USB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EXTCON_USB@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_extcon_get_state
	mov	x21, x0
Lloh2:
	adrp	x25, _EXTCON_DISP_DP@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EXTCON_DISP_DP@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_extcon_get_state
	cbz	w21, LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _MODE_UFP_USB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MODE_UFP_USB@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	w22, [x22]
LBB0_3:
Lloh7:
	adrp	x8, _EXTCON_PROP_USB_TYPEC_POLARITY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXTCON_PROP_USB_TYPEC_POLARITY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_extcon_get_property
	cbz	w0, LBB0_9
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x21, x20
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x8, _MODE_DFP_USB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_DFP_USB@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x23, _MODE_DFP_USB@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MODE_DFP_USB@GOTPAGEOFF]
	cbz	w0, LBB0_11
; %bb.7:
Lloh17:
	adrp	x8, _MODE_DFP_DP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MODE_DFP_DP@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	ldr	w22, [x25]
Lloh20:
	adrp	x8, _EXTCON_PROP_USB_SS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXTCON_PROP_USB_SS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_extcon_get_property
	cbz	w0, LBB0_12
; %bb.8:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_9:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19]
LBB0_10:
	mov	x0, x21
	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_11:
Lloh25:
	adrp	x8, _EXTCON_USB_HOST@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXTCON_USB_HOST@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
	ldr	w21, [x23]
	b	LBB0_3
LBB0_12:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w8, [x23]
	orr	w21, w8, w24
	b	LBB0_3
LBB0_14:
	mov	x21, x24
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_DFP_USB,4,2               ; @MODE_DFP_USB
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.comm	_EXTCON_DISP_DP,4,2             ; @EXTCON_DISP_DP
	.comm	_EXTCON_USB_HOST,4,2            ; @EXTCON_USB_HOST
	.comm	_MODE_UFP_USB,4,2               ; @MODE_UFP_USB
	.comm	_MODE_DFP_DP,4,2                ; @MODE_DFP_DP
	.comm	_EXTCON_PROP_USB_SS,4,2         ; @EXTCON_PROP_USB_SS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get superspeed property failed\n"

	.comm	_EXTCON_PROP_USB_TYPEC_POLARITY,4,2 ; @EXTCON_PROP_USB_TYPEC_POLARITY
l_.str.1:                               ; @.str.1
	.asciz	"get polarity property failed\n"

	.no_dead_strip	_tcphy_get_mode
.subsections_via_symbols
