	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmitter_control_v1_5
_transmitter_control_v1_5:              ## @transmitter_control_v1_5
	.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	$152, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rdi), %r15
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	64(%rbx), %edi
	callq	*32(%r15)
	movl	%eax, -32(%rbp)
	movq	56(%rbx), %rax
	movq	%rax, -40(%rbp)
	movups	40(%rbx), %xmm0
	movups	%xmm0, -56(%rbp)
	movl	8(%rbx), %edi
	callq	*24(%r15)
	movl	%eax, -64(%rbp)
	movl	36(%rbx), %edi
	callq	*16(%r15)
	movl	%eax, -68(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -72(%rbp)
	movl	28(%rbx), %edi
	callq	*8(%r15)
	movl	%eax, -76(%rbp)
	movl	24(%rbx), %edi
	callq	*(%r15)
	movl	%eax, -80(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -88(%rbp)
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movl	8(%rbx), %ecx
	movq	_SIGNAL_TYPE_HDMI_TYPE_A@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.1:
	movl	4(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$129, %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$130, %ecx
	jne	LBB0_9
## %bb.4:
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	jmp	LBB0_6
LBB0_7:
	movq	%rax, %rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	jmp	LBB0_8
LBB0_5:
	movq	%rax, %rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,8), %eax
	cltq
LBB0_6:
	imulq	$715827883, %rax, %rdi          ## imm = 0x2AAAAAAB
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
LBB0_8:
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
LBB0_9:
	movq	_UNIPHYTransmitterControl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rax
	movq	%rax, 64(%rsp)
	movups	-96(%rbp), %xmm0
	movups	-80(%rbp), %xmm1
	movups	-64(%rbp), %xmm2
	movups	-48(%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_11
## %bb.10:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_SIGNAL_TYPE_HDMI_TYPE_A,4,2    ## @SIGNAL_TYPE_HDMI_TYPE_A
	.comm	_UNIPHYTransmitterControl,4,2   ## @UNIPHYTransmitterControl
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_transmitter_control_v1_5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transmitter_control_v1_5
_transmitter_control_v1_5:              ; @transmitter_control_v1_5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x21, [x0]
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	x8, [x21, #32]
	ldr	w0, [x19, #64]
	blr	x8
	str	w0, [sp, #136]
	ldr	x8, [x19, #56]
	str	x8, [sp, #128]
	ldur	q0, [x19, #40]
	stur	q0, [sp, #112]
	ldr	x8, [x21, #24]
	ldr	w0, [x19, #8]
	blr	x8
	str	w0, [sp, #104]
	ldr	x8, [x21, #16]
	ldr	w0, [x19, #36]
	blr	x8
	ldp	w8, w9, [x19, #28]
	stp	w9, w0, [sp, #96]
	ldr	x9, [x21, #8]
	mov	x0, x8
	blr	x9
	str	w0, [sp, #92]
	ldr	x8, [x21]
	ldr	w0, [x19, #24]
	blr	x8
	str	w0, [sp, #88]
	ldr	x8, [x19, #16]
	str	x8, [sp, #80]
	ldrsw	x8, [x19]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #2
	bl	_cpu_to_le16
	str	x0, [sp, #72]
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _SIGNAL_TYPE_HDMI_TYPE_A@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIGNAL_TYPE_HDMI_TYPE_A@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
	bl	_le16_to_cpu
	mov	w8, #30
	mul	w8, w0, w8
	b	LBB0_7
LBB0_5:
	bl	_le16_to_cpu
	lsl	w0, w0, #1
	b	LBB0_8
LBB0_6:
	bl	_le16_to_cpu
	add	w8, w0, w0, lsl #3
	lsl	w8, w8, #2
LBB0_7:
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
LBB0_8:
	bl	_cpu_to_le16
	str	x0, [sp, #72]
LBB0_9:
Lloh6:
	adrp	x8, _UNIPHYTransmitterControl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHYTransmitterControl@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldur	q0, [sp, #104]
	ldur	q1, [sp, #120]
	stp	q0, q1, [sp, #32]
	ldr	x8, [sp, #136]
	str	x8, [sp, #64]
	ldur	q0, [sp, #88]
	ldur	q1, [sp, #72]
	stp	q1, q0, [sp]
	mov	x1, sp
	bl	_EXEC_BIOS_CMD_TABLE
Lloh9:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w20, w8, eq
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_SIGNAL_TYPE_HDMI_TYPE_A,4,2    ; @SIGNAL_TYPE_HDMI_TYPE_A
	.comm	_UNIPHYTransmitterControl,4,2   ; @UNIPHYTransmitterControl
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_transmitter_control_v1_5
.subsections_via_symbols
