	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_i2c_redriver_setting
_write_i2c_redriver_setting:            ## @write_i2c_redriver_setting
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_DC_LOGGER_INIT
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movabsq	$335007449166, %rax             ## imm = 0x4E0000004E
	movq	%rax, -84(%rbp)
	movl	$78, -76(%rbp)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	leal	74(,%rax,4), %eax
	movl	%eax, -72(%rbp)
	movq	%rbx, %rdi
	movl	$120, %esi
	movq	%r15, %rdx
	movl	$64, %ecx
	callq	_i2c_write
	movl	%eax, %ebx
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %ecx
	movl	-76(%rbp), %r8d
	movl	-72(%rbp), %r9d
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	$120, %esi
	callq	_RETIMER_REDRIVER_INFO
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redriver write 0 to all 16 reg offset expect following:\n\t\t\t slave_addr = 0x%x, offset[3] = 0x%x, offset[4] = 0x%x,\t\toffset[5] = 0x%x,offset[6] is_over_340mhz = 0x%x,\t\ti2c_success = %d\n"

	.no_dead_strip	_write_i2c_redriver_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_i2c_redriver_setting
_write_i2c_redriver_setting:            ; @write_i2c_redriver_setting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_DC_LOGGER_INIT
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	movi.2s	v0, #78
	stur	d0, [sp, #20]
	mov	w8, #78
	mov	w9, #74
	cmp	w19, #0
	csel	w9, w9, w8, eq
	stp	w8, w9, [sp, #28]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #120
	mov	w3, #64
	bl	_i2c_write
	mov	x19, x0
	ldp	w2, w3, [sp, #20]
	ldp	w4, w5, [sp, #28]
	cmp	w0, #0
	cset	w6, ne
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #120
	bl	_RETIMER_REDRIVER_INFO
	cbnz	w19, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_ASSERT
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redriver write 0 to all 16 reg offset expect following:\n\t\t\t slave_addr = 0x%x, offset[3] = 0x%x, offset[4] = 0x%x,\t\toffset[5] = 0x%x,offset[6] is_over_340mhz = 0x%x,\t\ti2c_success = %d\n"

	.no_dead_strip	_write_i2c_redriver_setting
.subsections_via_symbols
