	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov534_set_led
_ov534_set_led:                         ## @ov534_set_led
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	callq	_gspca_dbg
	movq	%rbx, %rdi
	movl	$33, %esi
	callq	_ov534_reg_read
	orl	$128, %eax
	movq	%rbx, %rdi
	movl	$33, %esi
	movl	%eax, %edx
	callq	_ov534_reg_write
	movq	%rbx, %rdi
	movl	$35, %esi
	callq	_ov534_reg_read
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	andl	$-129, %eax
	shll	$7, %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	$35, %esi
	callq	_ov534_reg_write
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	movl	$33, %esi
	callq	_ov534_reg_read
	andl	$-129, %eax
	movq	%rbx, %rdi
	movl	$33, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ov534_reg_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led status: %d\n"

	.no_dead_strip	_ov534_set_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov534_set_led
_ov534_set_led:                         ; @ov534_set_led
	.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	x20, x1
	mov	x19, x0
	cmp	w1, #0
	cset	w21, ne
Lloh0:
	adrp	x8, _D_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_gspca_dbg
	mov	x0, x19
	mov	w1, #33
	bl	_ov534_reg_read
	orr	w2, w0, #0x80
	mov	x0, x19
	mov	w1, #33
	bl	_ov534_reg_write
	mov	x0, x19
	mov	w1, #35
	bl	_ov534_reg_read
	mov	x2, x0
	bfi	w2, w21, #7, #1
	mov	x0, x19
	mov	w1, #35
	bl	_ov534_reg_write
	cbz	w20, LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	mov	w1, #33
	bl	_ov534_reg_read
	and	w2, w0, #0xffffff7f
	mov	x0, x19
	mov	w1, #33
	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	_ov534_reg_write
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led status: %d\n"

	.no_dead_strip	_ov534_set_led
.subsections_via_symbols
