	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_get_saturation             ## -- Begin function pwc_get_saturation
	.p2align	4, 0x90
_pwc_get_saturation:                    ## @pwc_get_saturation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	cmpl	$674, %eax                      ## imm = 0x2A2
	jg	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rsi, %rbx
	cmpl	$730, %eax                      ## imm = 0x2DA
	jae	LBB0_3
## %bb.4:
	movq	_SATURATION_MODE_FORMATTER2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SATURATION_MODE_FORMATTER1@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	_GET_CHROM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rcx
	movl	$1, %r8d
	callq	_recv_control_msg
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movsbl	-9(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SATURATION_MODE_FORMATTER2,4,2 ## @SATURATION_MODE_FORMATTER2
	.comm	_SATURATION_MODE_FORMATTER1,4,2 ## @SATURATION_MODE_FORMATTER1
	.comm	_GET_CHROM_CTL,4,2              ## @GET_CHROM_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_get_saturation             ; -- Begin function pwc_get_saturation
	.p2align	2
_pwc_get_saturation:                    ; @pwc_get_saturation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	cmp	w8, #674
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x19, x1
Lloh3:
	adrp	x9, _SATURATION_MODE_FORMATTER2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SATURATION_MODE_FORMATTER2@GOTPAGEOFF]
Lloh5:
	adrp	x10, _SATURATION_MODE_FORMATTER1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SATURATION_MODE_FORMATTER1@GOTPAGEOFF]
	cmp	w8, #730
	csel	x8, x9, x10, lo
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _GET_CHROM_CTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GET_CHROM_CTL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x3, sp, #15
	mov	w4, #1
	bl	_recv_control_msg
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w0, #0
	ldrsb	w8, [sp, #15]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SATURATION_MODE_FORMATTER2,4,2 ; @SATURATION_MODE_FORMATTER2
	.comm	_SATURATION_MODE_FORMATTER1,4,2 ; @SATURATION_MODE_FORMATTER1
	.comm	_GET_CHROM_CTL,4,2              ; @GET_CHROM_CTL
.subsections_via_symbols
