	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_set_slave_ids
_ov51x_set_slave_ids:                   ## @ov51x_set_slave_ids
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movq	_OVFX2_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_4:
	movq	%r14, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_R51x_I2C_W_SID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_reg_w
	movq	_R51x_I2C_R_SID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incq	%r14
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OVFX2_I2C_ADDR,4,2             ## @OVFX2_I2C_ADDR
	.comm	_R51x_I2C_W_SID,4,2             ## @R51x_I2C_W_SID
	.comm	_R51x_I2C_R_SID,4,2             ## @R51x_I2C_R_SID
	.no_dead_strip	_ov51x_set_slave_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_set_slave_ids
_ov51x_set_slave_ids:                   ; @ov51x_set_slave_ids
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _OVFX2_I2C_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OVFX2_I2C_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	b	LBB0_5
LBB0_3:
	str	x19, [x20, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _R51x_I2C_W_SID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R51x_I2C_W_SID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_reg_w
Lloh6:
	adrp	x8, _R51x_I2C_R_SID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R51x_I2C_R_SID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, x19, #1
	mov	x0, x20
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_w
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OVFX2_I2C_ADDR,4,2             ; @OVFX2_I2C_ADDR
	.comm	_R51x_I2C_W_SID,4,2             ; @R51x_I2C_W_SID
	.comm	_R51x_I2C_R_SID,4,2             ; @R51x_I2C_R_SID
	.no_dead_strip	_ov51x_set_slave_ids
.subsections_via_symbols
