	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mceusb_set_tx_carrier
_mceusb_set_tx_carrier:                 ## @mceusb_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	_MCE_CMD_PORT_IR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -20(%rbp)
	movq	_MCE_CMD_SETIRCFS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -19(%rbp)
	xorl	%r14d, %r14d
	cmpl	%esi, (%rbx)
	je	LBB0_13
## %bb.1:
	movl	%esi, %ecx
	testl	%esi, %esi
	je	LBB0_14
## %bb.2:
	xorl	%r14d, %r14d
	movl	$10000000, %eax                 ## imm = 0x989680
	xorl	%edx, %edx
	idivl	%ecx
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_14:
	movl	$0, (%rbx)
	movq	_MCE_CMD_SIG_END@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -18(%rbp)
	movq	_MCE_IRDATA_TRAILER@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -17(%rbp)
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_5
LBB0_6:
	movl	$2500000, %eax                  ## imm = 0x2625A0
	xorl	%edx, %edx
	idivl	%ecx
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_8
## %bb.7:
	movb	$1, %dl
	jmp	LBB0_4
LBB0_8:
	movl	$625000, %eax                   ## imm = 0x98968
	xorl	%edx, %edx
	idivl	%ecx
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_10
## %bb.9:
	movb	$2, %dl
	jmp	LBB0_4
LBB0_10:
	xorl	%esi, %esi
	movl	$156250, %eax                   ## imm = 0x2625A
	xorl	%edx, %edx
	idivl	%ecx
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_12
## %bb.11:
	movb	$3, %dl
LBB0_4:
	movl	%ecx, (%rbx)
	movb	%dl, -18(%rbp)
	movb	%al, -17(%rbp)
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_mce_command_out
LBB0_13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movl	%esi, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MCE_CMD_PORT_IR,4,2            ## @MCE_CMD_PORT_IR
	.comm	_MCE_CMD_SETIRCFS,4,2           ## @MCE_CMD_SETIRCFS
	.comm	_MCE_CMD_SIG_END,1,0            ## @MCE_CMD_SIG_END
	.comm	_MCE_IRDATA_TRAILER,1,0         ## @MCE_IRDATA_TRAILER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabling carrier modulation"

L_.str.1:                               ## @.str.1
	.asciz	"requesting %u HZ carrier"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mceusb_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 mceusb_set_tx_carrier
_mceusb_set_tx_carrier:                 ; @mceusb_set_tx_carrier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MCE_CMD_PORT_IR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCE_CMD_PORT_IR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	strb	w8, [sp, #12]
Lloh3:
	adrp	x8, _MCE_CMD_SETIRCFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCE_CMD_SETIRCFS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	strb	w8, [sp, #13]
	ldr	w8, [x19]
	cmp	w8, w1
	b.eq	LBB0_13
; %bb.1:
	cbz	w1, LBB0_4
; %bb.2:
	mov	w8, #38528
	movk	w8, #152, lsl #16
	sdiv	w8, w8, w1
	cmp	w8, #256
	b.ge	LBB0_5
; %bb.3:
	mov	w9, #0
	b	LBB0_11
LBB0_4:
	str	wzr, [x19]
Lloh6:
	adrp	x8, _MCE_CMD_SIG_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCE_CMD_SIG_END@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #14]
Lloh8:
	adrp	x8, _MCE_IRDATA_TRAILER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MCE_IRDATA_TRAILER@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #15]
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_5:
	mov	w8, #9632
	movk	w8, #38, lsl #16
	sdiv	w8, w8, w1
	cmp	w8, #256
	b.ge	LBB0_7
; %bb.6:
	mov	w9, #1
	b	LBB0_11
LBB0_7:
	mov	w8, #35176
	movk	w8, #9, lsl #16
	sdiv	w8, w8, w1
	cmp	w8, #256
	b.ge	LBB0_9
; %bb.8:
	mov	w9, #2
	b	LBB0_11
LBB0_9:
	mov	w8, #25178
	movk	w8, #2, lsl #16
	sdiv	w8, w8, w1
	cmp	w8, #256
	b.ge	LBB0_15
; %bb.10:
	mov	w9, #3
LBB0_11:
	str	w1, [x19]
	strb	w9, [sp, #14]
	strb	w8, [sp, #15]
	ldr	w0, [x19, #4]
	str	x1, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dev_dbg
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_mce_command_out
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MCE_CMD_PORT_IR,4,2            ; @MCE_CMD_PORT_IR
	.comm	_MCE_CMD_SETIRCFS,4,2           ; @MCE_CMD_SETIRCFS
	.comm	_MCE_CMD_SIG_END,1,0            ; @MCE_CMD_SIG_END
	.comm	_MCE_IRDATA_TRAILER,1,0         ; @MCE_IRDATA_TRAILER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabling carrier modulation"

l_.str.1:                               ; @.str.1
	.asciz	"requesting %u HZ carrier"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mceusb_set_tx_carrier
.subsections_via_symbols
