	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_brightness ## -- Begin function raspicamcontrol_set_brightness
	.p2align	4, 0x90
_raspicamcontrol_set_brightness:        ## @raspicamcontrol_set_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpl	$100, %esi
	ja	LBB0_2
## %bb.4:
	movl	(%rdi), %edi
	movq	_MMAL_PARAMETER_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %ecx
	movabsq	$429496729600, %rdx             ## imm = 0x6400000000
	orq	%rcx, %rdx
	movl	%eax, %esi
	callq	_mmal_port_parameter_set_rational
	movl	%eax, %edi
	popq	%rbp
	jmp	_mmal_status_to_int             ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_error
LBB0_3:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_BRIGHTNESS,4,2  ## @MMAL_PARAMETER_BRIGHTNESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid brightness value"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicamcontrol_set_brightness ; -- Begin function raspicamcontrol_set_brightness
	.p2align	2
_raspicamcontrol_set_brightness:        ; @raspicamcontrol_set_brightness
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w1, #100
	b.hi	LBB0_3
; %bb.2:
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _MMAL_PARAMETER_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_PARAMETER_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, w1
	mov	x10, #429496729600
	orr	x2, x9, x10
	mov	x1, x8
	bl	_mmal_port_parameter_set_rational
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mmal_status_to_int
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_error
LBB0_4:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_BRIGHTNESS,4,2  ; @MMAL_PARAMETER_BRIGHTNESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid brightness value"

.subsections_via_symbols
