	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc1_stream_encoder_dvi_set_stream_attribute ## -- Begin function enc1_stream_encoder_dvi_set_stream_attribute
	.p2align	4, 0x90
_enc1_stream_encoder_dvi_set_stream_attribute: ## @enc1_stream_encoder_dvi_set_stream_attribute
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	callq	_DCN10STRENC_FROM_STRENC
	movq	%rax, %r15
	movl	$0, -32(%rbp)
	movq	_ENCODER_CONTROL_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -40(%rbp)
	testl	%ebx, %ebx
	movq	_SIGNAL_TYPE_DVI_DUAL_LINK@GOTPCREL(%rip), %rax
	cmoveq	_SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	$0, -56(%rbp)
	movslq	(%r14), %rax
	movq	_LANE_COUNT_EIGHT@GOTPCREL(%rip), %rcx
	cmoveq	_LANE_COUNT_FOUR@GOTPCREL(%rip), %rcx
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rdx
	sarq	$34, %rdx
	shrq	$63, %rax
	addl	%edx, %eax
	movl	%eax, -52(%rbp)
	movl	(%rcx), %eax
	movl	%eax, -48(%rbp)
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	leaq	-56(%rbp), %rsi
	callq	*(%rax)
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movq	_PIXEL_ENCODING_RGB@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	movq	16(%r14), %rax
	movq	_COLOR_DEPTH_888@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_enc1_stream_encoder_set_stream_attribute_helper
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENCODER_CONTROL_SETUP,4,2      ## @ENCODER_CONTROL_SETUP
	.comm	_SIGNAL_TYPE_DVI_DUAL_LINK,4,2  ## @SIGNAL_TYPE_DVI_DUAL_LINK
	.comm	_SIGNAL_TYPE_DVI_SINGLE_LINK,4,2 ## @SIGNAL_TYPE_DVI_SINGLE_LINK
	.comm	_LANE_COUNT_EIGHT,4,2           ## @LANE_COUNT_EIGHT
	.comm	_LANE_COUNT_FOUR,4,2            ## @LANE_COUNT_FOUR
	.comm	_BP_RESULT_OK,8,3               ## @BP_RESULT_OK
	.comm	_PIXEL_ENCODING_RGB,8,3         ## @PIXEL_ENCODING_RGB
	.comm	_COLOR_DEPTH_888,8,3            ## @COLOR_DEPTH_888
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enc1_stream_encoder_dvi_set_stream_attribute ; -- Begin function enc1_stream_encoder_dvi_set_stream_attribute
	.p2align	2
_enc1_stream_encoder_dvi_set_stream_attribute: ; @enc1_stream_encoder_dvi_set_stream_attribute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x19, x1
	bl	_DCN10STRENC_FROM_STRENC
	mov	x20, x0
Lloh0:
	adrp	x8, _ENCODER_CONTROL_SETUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENCODER_CONTROL_SETUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #20]
	ldr	w8, [x0, #8]
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _SIGNAL_TYPE_DVI_DUAL_LINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGNAL_TYPE_DVI_DUAL_LINK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SIGNAL_TYPE_DVI_SINGLE_LINK@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldrsw	x8, [x19]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	stp	wzr, w8, [sp]
Lloh7:
	adrp	x8, _LANE_COUNT_EIGHT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LANE_COUNT_EIGHT@GOTPAGEOFF]
Lloh9:
	adrp	x9, _LANE_COUNT_FOUR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LANE_COUNT_FOUR@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, sp
	blr	x8
Lloh11:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _PIXEL_ENCODING_RGB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIXEL_ENCODING_RGB@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _COLOR_DEPTH_888@GOTPAGE
Lloh18:
	ldr	x9, [x9, _COLOR_DEPTH_888@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	mov	x0, x20
	mov	x1, x19
	bl	_enc1_stream_encoder_set_stream_attribute_helper
LBB0_2:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENCODER_CONTROL_SETUP,4,2      ; @ENCODER_CONTROL_SETUP
	.comm	_SIGNAL_TYPE_DVI_DUAL_LINK,4,2  ; @SIGNAL_TYPE_DVI_DUAL_LINK
	.comm	_SIGNAL_TYPE_DVI_SINGLE_LINK,4,2 ; @SIGNAL_TYPE_DVI_SINGLE_LINK
	.comm	_LANE_COUNT_EIGHT,4,2           ; @LANE_COUNT_EIGHT
	.comm	_LANE_COUNT_FOUR,4,2            ; @LANE_COUNT_FOUR
	.comm	_BP_RESULT_OK,8,3               ; @BP_RESULT_OK
	.comm	_PIXEL_ENCODING_RGB,8,3         ; @PIXEL_ENCODING_RGB
	.comm	_COLOR_DEPTH_888,8,3            ; @COLOR_DEPTH_888
.subsections_via_symbols
