	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_physical2iov                   ## -- Begin function physical2iov
	.p2align	4, 0x90
_physical2iov:                          ## @physical2iov
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	80(%rbx), %rdi
	callq	_hdlc_StopTimer
	movq	%rbx, %rdi
	callq	_lqr_StopTimer
	leaq	44(%rbx), %r12
	leaq	52(%rbx), %rdi
	callq	_timer_Stop
	leaq	32(%rbx), %r13
	leaq	40(%rbx), %rdi
	callq	_timer_Stop
	leaq	48(%rbx), %rdi
	callq	_timer_Stop
	leaq	36(%rbx), %rdi
	callq	_timer_Stop
	movq	%r12, %rdi
	callq	_timer_Stop
	movq	%r13, %rdi
	callq	_timer_Stop
	movq	72(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	8(%r13), %rax
	movq	%rax, 72(%rbx)
LBB0_4:
	movq	64(%rbx), %rax
	movl	(%rax), %edi
	movq	_OPT_KEEPSESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Enabled
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	callq	_tcgetpgrp
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_getpgrp
	movq	%rax, %rcx
	movq	$-1, %rax
	cmpq	%rcx, %r12
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_getpid
LBB0_7:
	movq	%rax, 56(%rbx)
	leaq	24(%rbx), %rdi
	callq	_timer_Stop
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movslq	(%r14), %rax
	leal	2(%rax), %edx
	cmpl	%ecx, %edx
	jge	LBB0_9
## %bb.11:
	shlq	$4, %rax
	movq	%rbx, 8(%r15,%rax)
	movl	$88, (%r15,%rax)
	movslq	(%r14), %rsi
	incq	%rsi
	movl	%esi, (%r14)
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.13:
	movq	16(%rbx), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movl	$-1, %r12d
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.10:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_27
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	shlq	$4, %rsi
	movq	%rax, 8(%r15,%rsi)
	movq	_SAMPLE_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	movl	%edx, (%r15,%rsi)
	movslq	(%r14), %rsi
	incq	%rsi
	movl	%esi, (%r14)
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.16:
	movq	8(%rbx), %rdx
	jmp	LBB0_17
LBB0_15:
	xorl	%edx, %edx
LBB0_17:
	shlq	$4, %rsi
	movq	%rdx, 8(%r15,%rsi)
	movl	(%rax), %eax
	shll	$3, %eax
	movl	%eax, (%r15,%rsi)
	incl	(%r14)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_physical_MaxDeviceSize
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.18:
	testq	%r13, %r13
	je	LBB0_21
## %bb.19:
	movq	(%r13), %r10
	testq	%r10, %r10
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	*%r10
	jmp	LBB0_26
LBB0_28:
	movslq	(%r14), %rcx
	shlq	$4, %rcx
	movq	$0, 8(%r15,%rcx)
	movl	%eax, (%r15,%rcx)
	incl	(%r14)
	jmp	LBB0_27
LBB0_21:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_malloc
	movslq	(%r14), %rcx
	shlq	$4, %rcx
	movq	%rax, 8(%r15,%rcx)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	_LogALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AbortProgram
LBB0_23:
	testq	%r13, %r13
	je	LBB0_25
## %bb.24:
	movslq	(%r14), %rax
	shlq	$4, %rax
	movq	8(%r15,%rax), %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	callq	_memcpy
LBB0_25:
	movslq	(%r14), %rax
	shlq	$4, %rax
	movl	%r12d, (%r15,%rax)
	incl	(%r14)
LBB0_26:
	movl	(%rbx), %r12d
LBB0_27:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPT_KEEPSESSION,4,2            ## @OPT_KEEPSESSION
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"physical2iov: No room for physical + throughput + device !\n"

	.comm	_SAMPLE_PERIOD,4,2              ## @SAMPLE_PERIOD
	.comm	_LogALERT,4,2                   ## @LogALERT
L_.str.1:                               ## @.str.1
	.asciz	"physical2iov: Out of memory (%d bytes)\n"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_physical2iov                   ; -- Begin function physical2iov
	.p2align	2
_physical2iov:                          ; @physical2iov
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x0, x19, #80
	bl	_hdlc_StopTimer
	mov	x0, x19
	bl	_lqr_StopTimer
	add	x25, x19, #44
	add	x0, x19, #52
	bl	_timer_Stop
	add	x26, x19, #32
	add	x0, x19, #40
	bl	_timer_Stop
	add	x0, x19, #48
	bl	_timer_Stop
	add	x0, x19, #36
	bl	_timer_Stop
	mov	x0, x25
	bl	_timer_Stop
	mov	x0, x26
	bl	_timer_Stop
	ldr	x25, [x19, #72]
	cbz	x25, LBB0_3
; %bb.2:
	ldr	x8, [x25, #8]
	str	x8, [x19, #72]
LBB0_3:
	ldr	x8, [x19, #64]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _OPT_KEEPSESSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPT_KEEPSESSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_Enabled
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	bl	_tcgetpgrp
	mov	x26, x0
	bl	_getpgrp
	cmp	x26, x0
	b.ne	LBB0_30
LBB0_5:
	bl	_getpid
LBB0_6:
	str	x0, [x19, #56]
	add	x0, x19, #24
	bl	_timer_Stop
	b	LBB0_8
LBB0_7:
	mov	x25, #0
LBB0_8:
	ldrsw	x8, [x20]
	add	w9, w8, #2
	cmp	w9, w24
	b.ge	LBB0_11
; %bb.9:
	add	x8, x21, x8, lsl #4
	str	x19, [x8, #8]
	mov	w9, #88
	str	w9, [x8]
	ldrsw	x8, [x20]
	add	x8, x8, #1
	str	w8, [x20]
	cbz	x19, LBB0_13
; %bb.10:
	ldr	x9, [x19, #16]
	b	LBB0_14
LBB0_11:
Lloh3:
	adrp	x8, _LogERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	cbz	x19, LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_free
	mov	w0, #-1
	b	LBB0_29
LBB0_13:
	mov	x9, #0
LBB0_14:
	add	x10, x21, x8, lsl #4
	str	x9, [x10, #8]
Lloh8:
	adrp	x8, _SAMPLE_PERIOD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SAMPLE_PERIOD@GOTPAGEOFF]
	ldr	w9, [x8]
	lsl	w9, w9, #3
	str	w9, [x10]
	ldrsw	x9, [x20]
	add	x9, x9, #1
	str	w9, [x20]
	cbz	x19, LBB0_17
; %bb.15:
	ldr	x10, [x19, #8]
	b	LBB0_18
LBB0_16:
	mov	w0, #-1
	b	LBB0_29
LBB0_17:
	mov	x10, #0
LBB0_18:
	add	x9, x21, x9, lsl #4
	str	x10, [x9, #8]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	str	w8, [x9]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	bl	_physical_MaxDeviceSize
	mov	x26, x0
	cbz	x19, LBB0_22
; %bb.19:
	cbz	x25, LBB0_23
; %bb.20:
	ldr	x8, [x25]
	cbz	x8, LBB0_23
; %bb.21:
	mov	x0, x25
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	blr	x8
	b	LBB0_28
LBB0_22:
	mov	w0, #0
	ldrsw	x8, [x20]
	add	x8, x21, x8, lsl #4
	str	xzr, [x8, #8]
	str	w26, [x8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_29
LBB0_23:
	mov	x0, x26
	bl	_malloc
	ldrsw	x8, [x20]
	add	x8, x21, x8, lsl #4
	str	x0, [x8, #8]
	cbnz	x0, LBB0_25
; %bb.24:
Lloh10:
	adrp	x8, _LogALERT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LogALERT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
Lloh15:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AbortProgram
LBB0_25:
	cbz	x25, LBB0_27
; %bb.26:
	ldrsw	x8, [x20]
	add	x8, x21, x8, lsl #4
	ldr	x0, [x8, #8]
	mov	x1, x25
	mov	w2, #16
	bl	_memcpy
LBB0_27:
	ldrsw	x8, [x20]
	lsl	x8, x8, #4
	str	w26, [x21, x8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_28:
	ldr	w0, [x19]
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_30:
	mov	x0, #-1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OPT_KEEPSESSION,4,2            ; @OPT_KEEPSESSION
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"physical2iov: No room for physical + throughput + device !\n"

	.comm	_SAMPLE_PERIOD,4,2              ; @SAMPLE_PERIOD
	.comm	_LogALERT,4,2                   ; @LogALERT
l_.str.1:                               ; @.str.1
	.asciz	"physical2iov: Out of memory (%d bytes)\n"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
.subsections_via_symbols
