	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmitter_control_v1_6
_transmitter_control_v1_6:              ## @transmitter_control_v1_6
	.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	$136, %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	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	56(%rbx), %edi
	callq	*24(%r15)
	movl	%eax, -32(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -40(%rbp)
	movq	_TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	48(%rbx), %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	16(%rbx), %edi
	callq	*16(%r15)
	movl	%eax, -56(%rbp)
LBB0_3:
	movq	40(%rbx), %rax
	movq	%rax, -64(%rbp)
	movl	36(%rbx), %edi
	callq	*8(%r15)
	movl	%eax, -68(%rbp)
	movl	32(%rbx), %edi
	callq	*(%r15)
	movl	%eax, -72(%rbp)
	movq	24(%rbx), %rax
	movq	%rax, -80(%rbp)
	movslq	8(%rbx), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
	movl	%edi, -88(%rbp)
	cmpl	$128, 16(%rbx)
	jne	LBB0_12
## %bb.4:
	movl	12(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$131, %eax
	jne	LBB0_12
## %bb.7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	jmp	LBB0_9
LBB0_10:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	jmp	LBB0_11
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,8), %eax
	cltq
LBB0_9:
	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_11:
	callq	_cpu_to_le16
	movl	%eax, -88(%rbp)
LBB0_12:
	movq	_UNIPHYTransmitterControl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	-56(%rbp), %xmm2
	movups	-40(%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_14
## %bb.13:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS,8,3 ## @TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS
	.comm	_UNIPHYTransmitterControl,4,2   ## @UNIPHYTransmitterControl
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_transmitter_control_v1_6
.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_6
_transmitter_control_v1_6:              ; @transmitter_control_v1_6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, #64
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	x8, [x21, #24]
	ldr	w0, [x19, #56]
	blr	x8
	str	w0, [sp, #120]
	ldr	x8, [x19]
	str	x8, [sp, #112]
Lloh3:
	adrp	x9, _TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
	str	x8, [sp, #104]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21, #16]
	ldr	w0, [x19, #16]
	blr	x8
	str	w0, [sp, #96]
LBB0_3:
	ldr	x8, [x19, #40]
	str	x8, [sp, #88]
	ldr	x8, [x21, #8]
	ldr	w0, [x19, #36]
	blr	x8
	str	w0, [sp, #84]
	ldr	x8, [x21]
	ldr	w0, [x19, #32]
	blr	x8
	str	w0, [sp, #80]
	ldr	x8, [x19, #24]
	str	x8, [sp, #72]
	ldrsw	x8, [x19, #8]
	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
	str	w0, [sp, #64]
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.4:
	ldr	w8, [x19, #12]
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #131
	b.ne	LBB0_12
; %bb.7:
	bl	_le16_to_cpu
	mov	w8, #30
	mul	w8, w0, w8
	b	LBB0_10
LBB0_8:
	bl	_le16_to_cpu
	lsl	w0, w0, #1
	b	LBB0_11
LBB0_9:
	bl	_le16_to_cpu
	add	w8, w0, w0, lsl #3
	lsl	w8, w8, #2
LBB0_10:
	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_11:
	bl	_cpu_to_le16
	str	w0, [sp, #64]
LBB0_12:
Lloh6:
	adrp	x8, _UNIPHYTransmitterControl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHYTransmitterControl@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	q0, q1, [sp, #64]
	stp	q0, q1, [sp]
	ldp	q0, q1, [sp, #96]
	stp	q0, q1, [sp, #32]
	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, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	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	_TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS,8,3 ; @TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS
	.comm	_UNIPHYTransmitterControl,4,2   ; @UNIPHYTransmitterControl
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_transmitter_control_v1_6
.subsections_via_symbols
