	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_i2c_reg_write
_octeon_i2c_reg_write:                  ## @octeon_i2c_reg_write
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_SW_TWSI_V@GOTPCREL(%rip), %r13
	orl	%edx, %r14d
	orl	(%r13), %r14d
	movq	(%rdi), %r15
	callq	_SW_TWSI
	addq	%rax, %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	___raw_writeq
	movl	$-1001, %r14d                   ## imm = 0xFC17
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movq	%r12, %rdi
	callq	_SW_TWSI
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	___raw_readq
	incl	%r14d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r13)
	jne	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SW_TWSI_V,4,2                  ## @SW_TWSI_V
	.no_dead_strip	_octeon_i2c_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_i2c_reg_write
_octeon_i2c_reg_write:                  ; @octeon_i2c_reg_write
	.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
Lloh0:
	adrp	x21, _SW_TWSI_V@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SW_TWSI_V@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w9, w2, w1
	orr	w20, w9, w8
	ldr	x22, [x0]
	bl	_SW_TWSI
	add	x1, x0, x22
	mov	x0, x20
	bl	___raw_writeq
	mov	w20, #-1001
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19]
	mov	x0, x19
	bl	_SW_TWSI
	add	x0, x0, x22
	bl	___raw_readq
	adds	w20, w20, #1
	b.hs	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_1
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SW_TWSI_V,4,2                  ; @SW_TWSI_V
	.no_dead_strip	_octeon_i2c_reg_write
.subsections_via_symbols
