	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tusb1210_set_mode
_tusb1210_set_mode:                     ## @tusb1210_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movl	(%rax), %edi
	movq	_ULPI_OTG_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ulpi_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	cmpl	$128, %ebx
	jne	LBB0_2
## %bb.5:
	movq	_ULPI_OTG_CTRL_DRVVBUS_EXT@GOTPCREL(%rip), %rax
	movq	_ULPI_OTG_CTRL_ID_PULLUP@GOTPCREL(%rip), %rcx
	movq	_ULPI_OTG_CTRL_DP_PULLDOWN@GOTPCREL(%rip), %rdx
	movq	_ULPI_OTG_CTRL_DM_PULLDOWN@GOTPCREL(%rip), %rsi
	movl	(%rax), %ebx
	orl	%r15d, %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	%ebx, %edx
	callq	_ulpi_write
	movq	_ULPI_OTG_CTRL_DRVVBUS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%r15d, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ULPI_OTG_CTRL_DRVVBUS@GOTPCREL(%rip), %rax
	movq	_ULPI_OTG_CTRL_DP_PULLDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ULPI_OTG_CTRL_DM_PULLDOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	%r15d, %edx
	callq	_ulpi_write
	movq	_ULPI_OTG_CTRL_DRVVBUS_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
LBB0_7:
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ulpi_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ULPI_OTG_CTRL,4,2              ## @ULPI_OTG_CTRL
	.comm	_ULPI_OTG_CTRL_DRVVBUS_EXT,4,2  ## @ULPI_OTG_CTRL_DRVVBUS_EXT
	.comm	_ULPI_OTG_CTRL_ID_PULLUP,4,2    ## @ULPI_OTG_CTRL_ID_PULLUP
	.comm	_ULPI_OTG_CTRL_DP_PULLDOWN,4,2  ## @ULPI_OTG_CTRL_DP_PULLDOWN
	.comm	_ULPI_OTG_CTRL_DM_PULLDOWN,4,2  ## @ULPI_OTG_CTRL_DM_PULLDOWN
	.comm	_ULPI_OTG_CTRL_DRVVBUS,4,2      ## @ULPI_OTG_CTRL_DRVVBUS
	.no_dead_strip	_tusb1210_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tusb1210_set_mode
_tusb1210_set_mode:                     ; @tusb1210_set_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _ULPI_OTG_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ULPI_OTG_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ulpi_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _ULPI_OTG_CTRL_DRVVBUS_EXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ULPI_OTG_CTRL_DRVVBUS_EXT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ULPI_OTG_CTRL_ID_PULLUP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ULPI_OTG_CTRL_ID_PULLUP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ULPI_OTG_CTRL_DP_PULLDOWN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ULPI_OTG_CTRL_DP_PULLDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _ULPI_OTG_CTRL_DM_PULLDOWN@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ULPI_OTG_CTRL_DM_PULLDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w20, w8, w11
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_ulpi_write
Lloh14:
	adrp	x8, _ULPI_OTG_CTRL_DRVVBUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ULPI_OTG_CTRL_DRVVBUS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w2, w8, w20
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _ULPI_OTG_CTRL_DRVVBUS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ULPI_OTG_CTRL_DRVVBUS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ULPI_OTG_CTRL_DP_PULLDOWN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ULPI_OTG_CTRL_DP_PULLDOWN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _ULPI_OTG_CTRL_DM_PULLDOWN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ULPI_OTG_CTRL_DM_PULLDOWN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh25:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w20, w0, w8
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_ulpi_write
Lloh26:
	adrp	x8, _ULPI_OTG_CTRL_DRVVBUS_EXT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ULPI_OTG_CTRL_DRVVBUS_EXT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	bic	w2, w20, w8
LBB0_5:
	ldr	w0, [x19]
	ldr	w1, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ulpi_write
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ULPI_OTG_CTRL,4,2              ; @ULPI_OTG_CTRL
	.comm	_ULPI_OTG_CTRL_DRVVBUS_EXT,4,2  ; @ULPI_OTG_CTRL_DRVVBUS_EXT
	.comm	_ULPI_OTG_CTRL_ID_PULLUP,4,2    ; @ULPI_OTG_CTRL_ID_PULLUP
	.comm	_ULPI_OTG_CTRL_DP_PULLDOWN,4,2  ; @ULPI_OTG_CTRL_DP_PULLDOWN
	.comm	_ULPI_OTG_CTRL_DM_PULLDOWN,4,2  ; @ULPI_OTG_CTRL_DM_PULLDOWN
	.comm	_ULPI_OTG_CTRL_DRVVBUS,4,2      ; @ULPI_OTG_CTRL_DRVVBUS
	.no_dead_strip	_tusb1210_set_mode
.subsections_via_symbols
