	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvt_set_tx_carrier
_nvt_set_tx_carrier:                    ## @nvt_set_tx_carrier
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	_CIR_CP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movl	$3000000, %eax                  ## imm = 0x2DC6C0
	xorl	%edx, %edx
	idivq	%rbx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	$3000000, %eax                  ## imm = 0x2DC6C0
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	decl	%eax
	movzbl	%al, %esi
	movq	_CIR_CC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_nvt_cir_reg_write
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_nvt_cir_reg_read
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_nvt_cir_reg_read
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nvt_dbg
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CIR_CP,4,2                     ## @CIR_CP
	.comm	_CIR_CC,4,2                     ## @CIR_CC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cp: 0x%x cc: 0x%x\n"

	.no_dead_strip	_nvt_set_tx_carrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvt_set_tx_carrier
_nvt_set_tx_carrier:                    ; @nvt_set_tx_carrier
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _CIR_CP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CIR_CP@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #1
	bl	_nvt_cir_reg_write
	mov	w8, #50880
	movk	w8, #45, lsl #16
	sdiv	x8, x8, x19
	sub	w8, w8, #1
	and	w1, w8, #0xff
Lloh2:
	adrp	x22, _CIR_CC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CIR_CC@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_nvt_cir_reg_write
	ldr	w1, [x21]
	mov	x0, x20
	bl	_nvt_cir_reg_read
	mov	x19, x0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_nvt_cir_reg_read
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_nvt_dbg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CIR_CP,4,2                     ; @CIR_CP
	.comm	_CIR_CC,4,2                     ; @CIR_CC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cp: 0x%x cc: 0x%x\n"

	.no_dead_strip	_nvt_set_tx_carrier
.subsections_via_symbols
