	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hub_master_link_enable
_hub_master_link_enable:                ## @hub_master_link_enable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_to_fsi_master_hub
	movq	%rax, %r14
	leal	31(%r15), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	sarl	$5, %ebx
	movl	$-2147483648, %edi              ## imm = 0x80000000
	movl	%r15d, %ecx
	shrl	%cl, %edi
	callq	_cpu_to_be32
	movl	%eax, -36(%rbp)
	movl	(%r14), %edi
	movq	_FSI_MSENP0@GOTPCREL(%rip), %rax
	shll	$2, %ebx
	movslq	%ebx, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-36(%rbp), %r15
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_fsi_device_write
	movl	%eax, %r12d
	movq	_FSI_LINK_ENABLE_SETUP_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movl	(%r14), %edi
	movq	_FSI_MENP0@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_fsi_device_read
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSI_MSENP0,8,3                 ## @FSI_MSENP0
	.comm	_FSI_LINK_ENABLE_SETUP_TIME,4,2 ## @FSI_LINK_ENABLE_SETUP_TIME
	.comm	_FSI_MENP0,8,3                  ## @FSI_MENP0
	.no_dead_strip	_hub_master_link_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hub_master_link_enable
_hub_master_link_enable:                ; @hub_master_link_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_to_fsi_master_hub
	mov	x20, x0
	add	w8, w19, #31
	cmp	w19, #0
	csel	w8, w8, w19, lt
	asr	w21, w8, #5
	mov	w8, #-2147483648
	lsr	w0, w8, w19
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _FSI_MSENP0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSI_MSENP0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w9, w21, #2
	sxtw	x21, w9
	add	x1, x8, x21
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_write
	mov	x19, x0
Lloh3:
	adrp	x8, _FSI_LINK_ENABLE_SETUP_TIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSI_LINK_ENABLE_SETUP_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _FSI_MENP0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FSI_MENP0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x21
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_read
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FSI_MSENP0,8,3                 ; @FSI_MSENP0
	.comm	_FSI_LINK_ENABLE_SETUP_TIME,4,2 ; @FSI_LINK_ENABLE_SETUP_TIME
	.comm	_FSI_MENP0,8,3                  ; @FSI_MENP0
	.no_dead_strip	_hub_master_link_enable
.subsections_via_symbols
