	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_one_tuplelist
_read_one_tuplelist:                    ## @read_one_tuplelist
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r14d
	movl	%esi, -60(%rbp)
	movq	_tlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MDF_ATTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	xorl	%edx, %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, 8(%rax)
	jne	LBB0_4
	jmp	LBB0_35
LBB0_5:
	movl	$32, %edi
	callq	_xmalloc
	movq	%rbx, (%rax)
	movq	_MDF_ATTR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	movl	%r15d, 8(%rax)
	movq	%rax, %r15
	movq	_PIOCRWFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	cmpl	$0, -60(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_err
LBB0_9:
	leaq	-41(%rbp), %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_read
	cmpb	$1, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_errx
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %ebx
	movzbl	-41(%rbp), %r13d
	movq	_CIS_NULL@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r13b
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %r15d
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$24, %edi
	callq	_xmalloc
	movq	%rax, %r12
	movb	%r13b, (%rax)
	movq	_CIS_END@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r13b
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movb	$0, -42(%rbp)
	xorl	%r14d, %r14d
	movl	%ebx, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %edi
	leaq	-42(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	cmpb	$1, %al
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_errx
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	addl	$2, %r15d
	movzbl	-42(%rbp), %r14d
	cmpb	$-1, %r14b
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movb	$0, -42(%rbp)
	movq	_CIS_END@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
	movb	%r13b, -41(%rbp)
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	callq	_assert
	movzbl	%r13b, %ebx
	movl	%ebx, %edi
	callq	_get_tuple_info
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%rax), %eax
	movq	_LENGTH_ANY@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	%r14b, %al
	jbe	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %edi
	callq	_tuple_name
	leaq	L_.str.6(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_32
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	%r14b, 1(%r12)
	testb	%r14b, %r14b
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%r14b, %ebx
	addl	%ebx, %r15d
	movl	%ebx, %edi
	callq	_xmalloc
	movq	%rax, 8(%r12)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_read
	cmpb	%r14b, %al
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_errx
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, 16(%rax)
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, 16(%rax)
	movq	$0, 16(%r12)
LBB0_31:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
LBB0_32:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	-41(%rbp), %r12
LBB0_33:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_CIS_END@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r13b
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$1024, %r15d                    ## imm = 0x400
	jl	LBB0_10
LBB0_35:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tlist,8,3                      ## @tlist
	.comm	_MDF_ATTR,4,2                   ## @MDF_ATTR
	.comm	_PIOCRWFLAG,4,2                 ## @PIOCRWFLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting flag to rad %s memory failed"

L_.str.1:                               ## @.str.1
	.asciz	"attribute"

L_.str.2:                               ## @.str.2
	.asciz	"common"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"Unable to seek to memory offset %ju"

L_.str.4:                               ## @.str.4
	.asciz	"CIS code read"

	.comm	_CIS_NULL,1,0                   ## @CIS_NULL
	.comm	_CIS_END,1,0                    ## @CIS_END
L_.str.5:                               ## @.str.5
	.asciz	"CIS len read"

	.comm	_LENGTH_ANY,1,0                 ## @LENGTH_ANY
L_.str.6:                               ## @.str.6
	.asciz	"code %s (%d) ignored\n"

L_.str.7:                               ## @.str.7
	.asciz	"Can't read CIS data"

	.no_dead_strip	_read_one_tuplelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_one_tuplelist
_read_one_tuplelist:                    ; @read_one_tuplelist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	w1, [sp, #28]
Lloh0:
	adrp	x8, _tlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tlist@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _MDF_ATTR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MDF_ATTR@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w9, [x23]
	and	w9, w9, w22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x21
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x8, #8]
	cmp	w10, w9
	b.ne	LBB0_2
; %bb.5:
	mov	x20, #0
	b	LBB0_34
LBB0_6:
	mov	w0, #32
	bl	_xmalloc
	mov	x20, x0
	str	x21, [x0]
	ldr	w8, [x23]
	and	w8, w8, w22
	str	w8, [x0, #8]
Lloh5:
	adrp	x8, _PIOCRWFLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIOCRWFLAG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_8
; %bb.7:
	ldr	w8, [sp, #28]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh10:
	adrp	x10, l_.str.2@PAGE
Lloh11:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh14:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_lseek
	tbz	x0, #63, LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_10:
	mov	x21, #0
	mov	w24, #0
Lloh19:
	adrp	x28, _CIS_NULL@GOTPAGE
Lloh20:
	ldr	x28, [x28, _CIS_NULL@GOTPAGEOFF]
Lloh21:
	adrp	x22, _CIS_END@GOTPAGE
Lloh22:
	ldr	x22, [x22, _CIS_END@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #27
	mov	x0, x19
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w24, #1
	ldrb	w25, [sp, #27]
	ldrb	w8, [x28]
	cmp	w25, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x23
	b	LBB0_32
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #24
	bl	_xmalloc
	mov	x26, x0
	strb	w25, [x0]
	ldrb	w8, [x22]
	cmp	w25, w8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w27, #0
	strb	wzr, [sp, #26]
	mov	x24, x23
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, sp, #26
	mov	x0, x19
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w24, w24, #2
	ldrb	w27, [sp, #26]
	cmp	w27, #255
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w27, #0
	strb	wzr, [sp, #26]
	ldrb	w25, [x22]
	strb	w25, [sp, #27]
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
	bl	_assert
	mov	x0, x25
	bl	_get_tuple_info
	cbz	x0, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x0]
Lloh27:
	adrp	x9, _LENGTH_ANY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _LENGTH_ANY@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	ccmp	w8, w27, #0, ne
	b.hi	LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	strb	w27, [x26, #1]
	cbz	w27, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w24, w24, w27
	mov	x0, x27
	bl	_xmalloc
	mov	x1, x0
	str	x0, [x26, #8]
	mov	x0, x19
	mov	x2, x27
	bl	_read
	cmp	w0, w27
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	x21, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x26, [x21, #16]
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x26, [x20, #16]
	str	xzr, [x26, #16]
LBB0_30:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x26
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_tuple_name
	mov	w8, w25
	stp	x0, x8, [sp]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_32:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x22]
	cmp	w25, w8
	b.eq	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w24, #1024
	b.lt	LBB0_11
LBB0_34:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_tlist,8,3                      ; @tlist
	.comm	_MDF_ATTR,4,2                   ; @MDF_ATTR
	.comm	_PIOCRWFLAG,4,2                 ; @PIOCRWFLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting flag to rad %s memory failed"

l_.str.1:                               ; @.str.1
	.asciz	"attribute"

l_.str.2:                               ; @.str.2
	.asciz	"common"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"Unable to seek to memory offset %ju"

l_.str.4:                               ; @.str.4
	.asciz	"CIS code read"

	.comm	_CIS_NULL,1,0                   ; @CIS_NULL
	.comm	_CIS_END,1,0                    ; @CIS_END
l_.str.5:                               ; @.str.5
	.asciz	"CIS len read"

	.comm	_LENGTH_ANY,1,0                 ; @LENGTH_ANY
l_.str.6:                               ; @.str.6
	.asciz	"code %s (%d) ignored\n"

l_.str.7:                               ; @.str.7
	.asciz	"Can't read CIS data"

	.no_dead_strip	_read_one_tuplelist
.subsections_via_symbols
