	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cx88_ir_start
___cx88_ir_start:                       ## @__cx88_ir_start
	.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	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.4:
	leaq	16(%r15), %rbx
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_hrtimer_init
	movq	_cx88_ir_work@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	imull	$1000000, (%r15), %esi          ## imm = 0xF4240
	xorl	%edi, %edi
	callq	_ktime_set
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hrtimer_start
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	_PCI_INT_IR_SMPINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_MO_DDS_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ir_samplerate@GOTPCREL(%rip), %rax
	imull	$3404422, (%rax), %esi          ## imm = 0x33F286
	callq	_cx_write
	movq	_MO_DDSCFG_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$5, %esi
	callq	_cx_write
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_cx88_ir_work,4,2               ## @cx88_ir_work
	.comm	_PCI_INT_IR_SMPINT,4,2          ## @PCI_INT_IR_SMPINT
	.comm	_MO_DDS_IO,4,2                  ## @MO_DDS_IO
	.comm	_ir_samplerate,4,2              ## @ir_samplerate
	.comm	_MO_DDSCFG_IO,4,2               ## @MO_DDSCFG_IO
	.no_dead_strip	___cx88_ir_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cx88_ir_start
___cx88_ir_start:                       ; @__cx88_ir_start
	.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	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.3:
	add	x20, x21, #16
Lloh0:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _HRTIMER_MODE_REL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HRTIMER_MODE_REL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_hrtimer_init
Lloh5:
	adrp	x8, _cx88_ir_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cx88_ir_work@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	w8, [x21]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w1, w8, w9
	mov	w0, #0
	bl	_ktime_set
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_hrtimer_start
LBB0_4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _PCI_INT_IR_SMPINT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_INT_IR_SMPINT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh11:
	adrp	x8, _MO_DDS_IO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MO_DDS_IO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ir_samplerate@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ir_samplerate@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w9, #62086
	movk	w9, #51, lsl #16
	mul	w1, w8, w9
	bl	_cx_write
Lloh17:
	adrp	x8, _MO_DDSCFG_IO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MO_DDSCFG_IO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #5
	bl	_cx_write
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_cx88_ir_work,4,2               ; @cx88_ir_work
	.comm	_PCI_INT_IR_SMPINT,4,2          ; @PCI_INT_IR_SMPINT
	.comm	_MO_DDS_IO,4,2                  ; @MO_DDS_IO
	.comm	_ir_samplerate,4,2              ; @ir_samplerate
	.comm	_MO_DDSCFG_IO,4,2               ; @MO_DDSCFG_IO
	.no_dead_strip	___cx88_ir_start
.subsections_via_symbols
