	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_led_control
_ov51x_led_control:                     ## @ov51x_led_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%edx, %edx
	testl	%esi, %esi
	sete	%dl
	cmpq	$0, 8(%rdi)
	cmovel	%esi, %edx
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_6
## %bb.3:
	movq	_R511_SYS_LED_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
LBB0_4:
	movq	_R518_GPIO_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%edx, %edx
	movl	$2, %ecx
	popq	%rbp
	jmp	_reg_w_mask                     ## TAILCALL
LBB0_5:
	movq	_OV519_GPIO_DATA_OUT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ecx
	popq	%rbp
	jmp	_reg_w_mask                     ## TAILCALL
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R511_SYS_LED_CTL,4,2           ## @R511_SYS_LED_CTL
	.comm	_R518_GPIO_OUT,4,2              ## @R518_GPIO_OUT
	.comm	_OV519_GPIO_DATA_OUT0,4,2       ## @OV519_GPIO_DATA_OUT0
	.no_dead_strip	_ov51x_led_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_led_control
_ov51x_led_control:                     ; @ov51x_led_control
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cmp	w1, #0
	cset	w9, eq
	cmp	x8, #0
	csel	w2, w1, w9, eq
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _R511_SYS_LED_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R511_SYS_LED_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	b	_reg_w
LBB0_4:
Lloh3:
	adrp	x8, _R518_GPIO_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R518_GPIO_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	lsl	w2, w2, #1
	mov	w3, #2
	b	_reg_w_mask
LBB0_5:
Lloh6:
	adrp	x8, _OV519_GPIO_DATA_OUT0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OV519_GPIO_DATA_OUT0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w3, #1
	b	_reg_w_mask
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_R511_SYS_LED_CTL,4,2           ; @R511_SYS_LED_CTL
	.comm	_R518_GPIO_OUT,4,2              ; @R518_GPIO_OUT
	.comm	_OV519_GPIO_DATA_OUT0,4,2       ; @OV519_GPIO_DATA_OUT0
	.no_dead_strip	_ov51x_led_control
.subsections_via_symbols
