	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qusb2_phy_override_phy_params
_qusb2_phy_override_phy_params:         ## @qusb2_phy_override_phy_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	64(%rdi), %r14
	cmpq	$0, 56(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movl	24(%rbx), %edi
	movq	_IMP_RES_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_QUSB2PHY_IMP_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IMP_RES_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_qusb2_write_mask
LBB0_2:
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edx
	movl	24(%rbx), %edi
	movq	(%r14), %rax
	movq	_HSTX_TRIM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_QUSB2PHY_PORT_TUNE1@GOTPCREL(%rip), %rsi
	shll	%cl, %edx
	movq	(%rsi), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_HSTX_TRIM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_qusb2_write_mask
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edx
	movl	24(%rbx), %edi
	movq	(%r14), %rax
	movq	_PREEMPHASIS_EN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_QUSB2PHY_PORT_TUNE1@GOTPCREL(%rip), %rsi
	shll	%cl, %edx
	movq	(%rsi), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_PREEMPHASIS_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_qusb2_write_mask
LBB0_6:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rax
	movq	_QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT@GOTPCREL(%rip), %rcx
	movl	24(%rbx), %edi
	movq	(%r14), %rdx
	movq	_QUSB2PHY_PORT_TUNE1@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %esi
	movq	_PREEMPH_WIDTH_HALF_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qusb2_setbits                  ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qusb2_clrbits                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QUSB2PHY_IMP_CTRL1,4,2         ## @QUSB2PHY_IMP_CTRL1
	.comm	_IMP_RES_OFFSET_SHIFT,4,2       ## @IMP_RES_OFFSET_SHIFT
	.comm	_IMP_RES_OFFSET_MASK,4,2        ## @IMP_RES_OFFSET_MASK
	.comm	_QUSB2PHY_PORT_TUNE1,8,3        ## @QUSB2PHY_PORT_TUNE1
	.comm	_HSTX_TRIM_SHIFT,4,2            ## @HSTX_TRIM_SHIFT
	.comm	_HSTX_TRIM_MASK,4,2             ## @HSTX_TRIM_MASK
	.comm	_PREEMPHASIS_EN_SHIFT,4,2       ## @PREEMPHASIS_EN_SHIFT
	.comm	_PREEMPHASIS_EN_MASK,4,2        ## @PREEMPHASIS_EN_MASK
	.comm	_QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT,8,3 ## @QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT
	.comm	_PREEMPH_WIDTH_HALF_BIT,4,2     ## @PREEMPH_WIDTH_HALF_BIT
	.no_dead_strip	_qusb2_phy_override_phy_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qusb2_phy_override_phy_params
_qusb2_phy_override_phy_params:         ; @qusb2_phy_override_phy_params
	.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	x19, x0
	ldp	x8, x20, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _QUSB2PHY_IMP_CTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUSB2PHY_IMP_CTRL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IMP_RES_OFFSET_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMP_RES_OFFSET_SHIFT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh6:
	adrp	x8, _IMP_RES_OFFSET_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMP_RES_OFFSET_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_qusb2_write_mask
LBB0_2:
	ldr	x8, [x19, #48]
Lloh9:
	adrp	x21, _QUSB2PHY_PORT_TUNE1@GOTPAGE
Lloh10:
	ldr	x21, [x21, _QUSB2PHY_PORT_TUNE1@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
Lloh11:
	adrp	x8, _HSTX_TRIM_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HSTX_TRIM_SHIFT@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh13:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh14:
	adrp	x8, _HSTX_TRIM_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HSTX_TRIM_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_qusb2_write_mask
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #24]
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
Lloh17:
	adrp	x8, _PREEMPHASIS_EN_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PREEMPHASIS_EN_SHIFT@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh19:
	ldr	w8, [x8]
	lsl	w2, w9, w8
Lloh20:
	adrp	x8, _PREEMPHASIS_EN_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PREEMPHASIS_EN_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	bl	_qusb2_write_mask
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
Lloh23:
	adrp	x9, _QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	w0, [x19, #24]
	ldr	x10, [x20]
	ldr	x11, [x21]
	ldr	w1, [x10, x11, lsl #2]
Lloh26:
	adrp	x10, _PREEMPH_WIDTH_HALF_BIT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _PREEMPH_WIDTH_HALF_BIT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x10]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	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	_qusb2_setbits
LBB0_9:
	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
LBB0_10:
	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	_qusb2_clrbits
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_QUSB2PHY_IMP_CTRL1,4,2         ; @QUSB2PHY_IMP_CTRL1
	.comm	_IMP_RES_OFFSET_SHIFT,4,2       ; @IMP_RES_OFFSET_SHIFT
	.comm	_IMP_RES_OFFSET_MASK,4,2        ; @IMP_RES_OFFSET_MASK
	.comm	_QUSB2PHY_PORT_TUNE1,8,3        ; @QUSB2PHY_PORT_TUNE1
	.comm	_HSTX_TRIM_SHIFT,4,2            ; @HSTX_TRIM_SHIFT
	.comm	_HSTX_TRIM_MASK,4,2             ; @HSTX_TRIM_MASK
	.comm	_PREEMPHASIS_EN_SHIFT,4,2       ; @PREEMPHASIS_EN_SHIFT
	.comm	_PREEMPHASIS_EN_MASK,4,2        ; @PREEMPHASIS_EN_MASK
	.comm	_QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT,8,3 ; @QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT
	.comm	_PREEMPH_WIDTH_HALF_BIT,4,2     ; @PREEMPH_WIDTH_HALF_BIT
	.no_dead_strip	_qusb2_phy_override_phy_params
.subsections_via_symbols
