	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_set_image_prop
_ioctl_set_image_prop:                  ## @ioctl_set_image_prop
	.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
	leaq	12(%rsi), %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	leal	255(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$8, %esi
	movl	%esi, (%r14)
	movl	4(%rbx), %eax
	leal	255(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$8, %edx
	movl	%edx, 4(%r14)
	movl	8(%rbx), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, 8(%r14)
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	%r14, %rdi
	callq	_cpia2_set_color_params
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested params: bright 0x%X, sat 0x%X, contrast 0x%X\n"

	.no_dead_strip	_ioctl_set_image_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_set_image_prop
_ioctl_set_image_prop:                  ; @ioctl_set_image_prop
	.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
	add	x0, x1, #12
	mov	x1, x20
	mov	w2, #12
	bl	_memcpy
	ldp	w8, w9, [x20]
	add	w10, w8, #255
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w1, w8, #8
	add	w8, w9, #255
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #8
	stp	w1, w2, [x19]
	ldr	w8, [x20, #8]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #8
	str	w3, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	mov	x0, x19
	bl	_cpia2_set_color_params
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested params: bright 0x%X, sat 0x%X, contrast 0x%X\n"

	.no_dead_strip	_ioctl_set_image_prop
.subsections_via_symbols
