	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_workaround5458                 ## -- Begin function workaround5458
	.p2align	4, 0x90
_workaround5458:                        ## @workaround5458
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$8221, %edi                     ## imm = 0x201D
	callq	_read_cr
                                        ## kill: def $ax killed $ax def $eax
	movq	_PH_GAIN_MASK@GOTPCREL(%rip), %rcx
	movq	_FR_GAIN_MASK@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	orw	(%rcx), %dx
	notl	%edx
	andl	%eax, %edx
	movq	_PH_GAIN@GOTPCREL(%rip), %r12
	movzwl	(%r12), %eax
	movq	_PH_GAIN_OFFSET@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movq	_FR_GAIN@GOTPCREL(%rip), %rbx
	movzwl	(%rbx), %edx
	movq	_FR_GAIN_OFFSET@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	shll	%cl, %edx
	movq	_USE_INT_SETTING@GOTPCREL(%rip), %r15
	orw	(%r15), %ax
	orl	%edx, %eax
	movzwl	%ax, %edi
	movl	$8221, %esi                     ## imm = 0x201D
	callq	_write_cr
	movl	$8477, %edi                     ## imm = 0x211D
	callq	_read_cr
	movq	_FR_GAIN_MASK@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %edx
	movq	_PH_GAIN_MASK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %dx
                                        ## kill: def $ax killed $ax def $eax
	notl	%edx
	movzwl	(%r12), %esi
	movb	(%r13), %cl
	shll	%cl, %esi
	movzwl	(%rbx), %edi
	movb	(%r14), %cl
	shll	%cl, %edi
	andl	%eax, %edx
	orl	%edx, %esi
	orw	(%r15), %si
	orl	%edi, %esi
	movzwl	%si, %edi
	movl	$8477, %esi                     ## imm = 0x211D
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_cr                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PH_GAIN_MASK,2,1               ## @PH_GAIN_MASK
	.comm	_FR_GAIN_MASK,2,1               ## @FR_GAIN_MASK
	.comm	_PH_GAIN,2,1                    ## @PH_GAIN
	.comm	_PH_GAIN_OFFSET,2,1             ## @PH_GAIN_OFFSET
	.comm	_FR_GAIN,2,1                    ## @FR_GAIN
	.comm	_FR_GAIN_OFFSET,2,1             ## @FR_GAIN_OFFSET
	.comm	_USE_INT_SETTING,2,1            ## @USE_INT_SETTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_workaround5458                 ; -- Begin function workaround5458
	.p2align	2
_workaround5458:                        ; @workaround5458
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w0, #8221
	bl	_read_cr
Lloh0:
	adrp	x19, _PH_GAIN_MASK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PH_GAIN_MASK@GOTPAGEOFF]
	ldrh	w8, [x19]
Lloh2:
	adrp	x20, _FR_GAIN_MASK@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FR_GAIN_MASK@GOTPAGEOFF]
	ldrh	w9, [x20]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh4:
	adrp	x21, _PH_GAIN@GOTPAGE
Lloh5:
	ldr	x21, [x21, _PH_GAIN@GOTPAGEOFF]
	ldrh	w9, [x21]
Lloh6:
	adrp	x22, _PH_GAIN_OFFSET@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PH_GAIN_OFFSET@GOTPAGEOFF]
	ldrh	w10, [x22]
	lsl	w9, w9, w10
Lloh8:
	adrp	x23, _FR_GAIN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _FR_GAIN@GOTPAGEOFF]
	orr	w8, w8, w9
	ldrh	w9, [x23]
Lloh10:
	adrp	x24, _FR_GAIN_OFFSET@GOTPAGE
Lloh11:
	ldr	x24, [x24, _FR_GAIN_OFFSET@GOTPAGEOFF]
	ldrh	w10, [x24]
	lsl	w9, w9, w10
Lloh12:
	adrp	x25, _USE_INT_SETTING@GOTPAGE
Lloh13:
	ldr	x25, [x25, _USE_INT_SETTING@GOTPAGEOFF]
	ldrh	w10, [x25]
	orr	w8, w8, w10
	orr	w8, w8, w9
	and	w0, w8, #0xffff
	mov	w1, #8221
	bl	_write_cr
	mov	w0, #8477
	bl	_read_cr
	ldrh	w8, [x19]
	ldrh	w9, [x20]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldrh	w9, [x21]
	ldrh	w10, [x22]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldrh	w9, [x23]
	ldrh	w10, [x24]
	lsl	w9, w9, w10
	ldrh	w10, [x25]
	orr	w8, w8, w10
	orr	w8, w8, w9
	and	w0, w8, #0xffff
	mov	w1, #8477
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_write_cr
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PH_GAIN_MASK,2,1               ; @PH_GAIN_MASK
	.comm	_FR_GAIN_MASK,2,1               ; @FR_GAIN_MASK
	.comm	_PH_GAIN,2,1                    ; @PH_GAIN
	.comm	_PH_GAIN_OFFSET,2,1             ; @PH_GAIN_OFFSET
	.comm	_FR_GAIN,2,1                    ; @FR_GAIN
	.comm	_FR_GAIN_OFFSET,2,1             ; @FR_GAIN_OFFSET
	.comm	_USE_INT_SETTING,2,1            ; @USE_INT_SETTING
.subsections_via_symbols
