	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_get_agc                    ## -- Begin function pwc_get_agc
	.p2align	4, 0x90
_pwc_get_agc:                           ## @pwc_get_agc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GET_LUM_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AGC_MODE_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-25(%rbp), %rcx
	movl	$1, %r8d
	callq	_recv_control_msg
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	cmpb	$0, -25(%rbp)
	je	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movq	_PRESET_AGC_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-25(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_recv_control_msg
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movzbl	-25(%rbp), %eax
	cmpb	$63, %al
	movl	$63, %ecx
	cmovbl	%eax, %ecx
	movzbl	%cl, %eax
	shll	$10, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_GET_STATUS_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_READ_AGC_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-25(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_recv_control_msg
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movzbl	-25(%rbp), %eax
	cmpb	$-97, %al
	movl	$159, %ecx
	cmovbl	%eax, %ecx
	movzbl	%cl, %eax
	imull	$-409, %eax, %eax               ## imm = 0xFE67
	addl	$-48, %eax
LBB0_6:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_LUM_CTL,4,2                ## @GET_LUM_CTL
	.comm	_AGC_MODE_FORMATTER,4,2         ## @AGC_MODE_FORMATTER
	.comm	_PRESET_AGC_FORMATTER,4,2       ## @PRESET_AGC_FORMATTER
	.comm	_GET_STATUS_CTL,4,2             ## @GET_STATUS_CTL
	.comm	_READ_AGC_FORMATTER,4,2         ## @READ_AGC_FORMATTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_get_agc                    ; -- Begin function pwc_get_agc
	.p2align	2
_pwc_get_agc:                           ; @pwc_get_agc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _GET_LUM_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GET_LUM_CTL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AGC_MODE_FORMATTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AGC_MODE_FORMATTER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #15
	mov	w4, #1
	bl	_recv_control_msg
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldrb	w8, [sp, #15]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _PRESET_AGC_FORMATTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRESET_AGC_FORMATTER@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #15
	mov	x0, x20
	mov	w4, #1
	bl	_recv_control_msg
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldrb	w8, [sp, #15]
	mov	w9, #63
	cmp	w8, #63
	csel	w8, w8, w9, lo
	lsl	w8, w8, #10
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _GET_STATUS_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GET_STATUS_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _READ_AGC_FORMATTER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _READ_AGC_FORMATTER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #15
	mov	x0, x20
	mov	w4, #1
	bl	_recv_control_msg
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldrb	w8, [sp, #15]
	mov	w9, #159
	cmp	w8, #159
	csel	w8, w8, w9, lo
	mov	w9, #-409
	mul	w8, w8, w9
	sub	w8, w8, #48
LBB0_6:
	mov	w0, #0
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_LUM_CTL,4,2                ; @GET_LUM_CTL
	.comm	_AGC_MODE_FORMATTER,4,2         ; @AGC_MODE_FORMATTER
	.comm	_PRESET_AGC_FORMATTER,4,2       ; @PRESET_AGC_FORMATTER
	.comm	_GET_STATUS_CTL,4,2             ; @GET_STATUS_CTL
	.comm	_READ_AGC_FORMATTER,4,2         ; @READ_AGC_FORMATTER
.subsections_via_symbols
