	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmitter_control_v3
_transmitter_control_v3:                ## @transmitter_control_v3
	.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
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	56(%rsi), %rdi
	callq	_dal_graphics_object_id_get_connector_id
	movq	(%rbx), %r12
	movq	_CONNECTOR_ID_DUAL_LINK_DVII@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	sete	%bl
	movq	_CONNECTOR_ID_DUAL_LINK_DVID@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	sete	%r13b
	leaq	-136(%rbp), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	jae	LBB0_1
## %bb.2:
	movl	64(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	*8(%r12)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	4(%r15), %eax
	cmpl	$135, %eax
	je	LBB0_8
## %bb.4:
	orb	%r13b, %bl
	cmpl	$136, %eax
	jne	LBB0_9
## %bb.5:
	testb	%bl, %bl
	je	LBB0_7
## %bb.6:
	movl	$1, -128(%rbp)
LBB0_7:
	movq	56(%r15), %rdi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	jmp	LBB0_16
LBB0_1:
	movq	_BP_RESULT_BADINPUT@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movups	40(%r15), %xmm0
	movups	%xmm0, -72(%rbp)
	jmp	LBB0_16
LBB0_9:
	testb	%bl, %bl
	je	LBB0_12
## %bb.10:
	cmpl	$0, 36(%r15)
	je	LBB0_12
## %bb.11:
	movl	$1, -128(%rbp)
LBB0_12:
	movq	_LANE_COUNT_FOUR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	24(%r15), %rax
	jge	LBB0_14
## %bb.13:
	movl	$1, -128(%rbp)
	movslq	8(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	jmp	LBB0_15
LBB0_14:
	movslq	8(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
LBB0_15:
	addl	%ecx, %eax
	movslq	%eax, %rdi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
LBB0_16:
	movl	32(%r15), %eax
	movl	%eax, -96(%rbp)
	movl	(%r15), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	ja	LBB0_19
## %bb.17:
	movl	$21, %ecx
	btl	%eax, %ecx
	jae	LBB0_19
## %bb.18:
	movl	$1, -124(%rbp)
LBB0_19:
	movq	_ENGINE_ID_DIGB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_21
## %bb.20:
	movl	$1, -120(%rbp)
LBB0_21:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*(%r12)
	movq	%rax, -104(%rbp)
	movq	24(%r15), %rax
	movq	%rax, -88(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -112(%rbp)
	movslq	4(%r15), %rax
	movq	%rax, -136(%rbp)
	movq	_UNIPHYTransmitterControl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax
	movq	%rax, 80(%rsp)
	movups	-72(%rbp), %xmm0
	movups	%xmm0, 64(%rsp)
	movups	-136(%rbp), %xmm0
	movups	-120(%rbp), %xmm1
	movups	-104(%rbp), %xmm2
	movups	-88(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_CONNECTOR_ID_DUAL_LINK_DVII,4,2 ## @CONNECTOR_ID_DUAL_LINK_DVII
	.comm	_CONNECTOR_ID_DUAL_LINK_DVID,4,2 ## @CONNECTOR_ID_DUAL_LINK_DVID
	.comm	_BP_RESULT_BADINPUT,4,2         ## @BP_RESULT_BADINPUT
	.comm	_LANE_COUNT_FOUR,8,3            ## @LANE_COUNT_FOUR
	.comm	_ENGINE_ID_DIGB,8,3             ## @ENGINE_ID_DIGB
	.comm	_UNIPHYTransmitterControl,4,2   ## @UNIPHYTransmitterControl
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_transmitter_control_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transmitter_control_v3
_transmitter_control_v3:                ; @transmitter_control_v3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x0, [x1, #56]
	bl	_dal_graphics_object_id_get_connector_id
	ldr	x20, [x20]
Lloh3:
	adrp	x8, _CONNECTOR_ID_DUAL_LINK_DVII@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONNECTOR_ID_DUAL_LINK_DVII@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
Lloh6:
	adrp	x8, _CONNECTOR_ID_DUAL_LINK_DVID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONNECTOR_ID_DUAL_LINK_DVID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ne
	cset	w22, eq
	add	x0, sp, #104
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hs	LBB0_7
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w0, [x19, #64]
	add	x1, sp, #96
	blr	x8
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #135
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #136
	b.ne	LBB0_9
; %bb.4:
	cbz	w22, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [sp, #112]
LBB0_6:
	ldr	x0, [x19, #56]
	bl	_cpu_to_le16
	str	x0, [sp, #184]
	b	LBB0_16
LBB0_7:
Lloh9:
	adrp	x8, _BP_RESULT_BADINPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BP_RESULT_BADINPUT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_8:
	ldp	x9, x8, [x19, #40]
	stp	x9, x8, [sp, #168]
	b	LBB0_16
LBB0_9:
	cbz	w22, LBB0_12
; %bb.10:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [sp, #112]
LBB0_12:
Lloh12:
	adrp	x8, _LANE_COUNT_FOUR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LANE_COUNT_FOUR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [sp, #112]
	ldrsw	x8, [x19, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	b	LBB0_15
LBB0_14:
	ldrsw	x8, [x19, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
LBB0_15:
	add	w8, w8, w9
	sxtw	x0, w8
	bl	_cpu_to_le16
	str	x0, [sp, #160]
LBB0_16:
	ldr	w8, [x19, #32]
	str	w8, [sp, #144]
	ldr	w0, [x19]
	sub	w9, w0, #128
	cmp	w9, #4
	b.hi	LBB0_19
; %bb.17:
	mov	w8, #1
	lsl	w9, w8, w9
	mov	w10, #21
	tst	w9, w10
	b.eq	LBB0_19
; %bb.18:
	str	w8, [sp, #116]
LBB0_19:
	add	x22, sp, #104
Lloh15:
	adrp	x8, _ENGINE_ID_DIGB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENGINE_ID_DIGB@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [sp, #120]
LBB0_21:
	ldr	x8, [x20]
	blr	x8
	ldr	x8, [x19, #24]
	str	x8, [sp, #152]
	ldr	x8, [sp, #96]
	ldrsw	x9, [x19, #4]
	stp	x8, x0, [sp, #128]
	str	x9, [sp, #104]
Lloh18:
	adrp	x8, _UNIPHYTransmitterControl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UNIPHYTransmitterControl@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	q0, q1, [x22, #32]
	stp	q0, q1, [sp, #32]
	ldr	q0, [x22, #64]
	str	q0, [sp, #64]
	ldr	x8, [sp, #184]
	str	x8, [sp, #80]
	ldur	q0, [sp, #104]
	ldur	q1, [sp, #120]
	stp	q0, q1, [sp]
	mov	x1, sp
	bl	_EXEC_BIOS_CMD_TABLE
Lloh21:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w21, w8, eq
LBB0_22:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_CONNECTOR_ID_DUAL_LINK_DVII,4,2 ; @CONNECTOR_ID_DUAL_LINK_DVII
	.comm	_CONNECTOR_ID_DUAL_LINK_DVID,4,2 ; @CONNECTOR_ID_DUAL_LINK_DVID
	.comm	_BP_RESULT_BADINPUT,4,2         ; @BP_RESULT_BADINPUT
	.comm	_LANE_COUNT_FOUR,8,3            ; @LANE_COUNT_FOUR
	.comm	_ENGINE_ID_DIGB,8,3             ; @ENGINE_ID_DIGB
	.comm	_UNIPHYTransmitterControl,4,2   ; @UNIPHYTransmitterControl
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_transmitter_control_v3
.subsections_via_symbols
