	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_track
_verify_track:                          ## @verify_track
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edi, %r14d
	movl	$-1, -36(%rbp)
	movq	_FD_GOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movq	_FDOPT_NORETRY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -36(%rbp)
	movq	_FD_SOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_3:
	movq	_verify_track.buf(%rip), %rax
	cmpl	%r12d, _verify_track.bufsz(%rip)
	jge	LBB0_5
## %bb.4:
	movl	%r12d, _verify_track.bufsz(%rip)
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_realloc
	movq	%rax, _verify_track.buf(%rip)
LBB0_5:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_7:
	movslq	%r15d, %rax
	movslq	%r12d, %rsi
	imulq	%rax, %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	_verify_track.buf(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_read
	cmpl	%r12d, %eax
	je	LBB0_11
## %bb.10:
	movq	_verify_track.buf(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_read
	xorl	%ebx, %ebx
	cmpl	%r12d, %eax
	setne	%bl
	negl	%ebx
LBB0_11:
	cmpl	$-1, -36(%rbp)
	je	LBB0_13
LBB0_12:
	movq	_FD_SOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$-1, %ebx
	cmpl	$-1, -36(%rbp)
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_verify_track.buf,8,3 ## @verify_track.buf
.zerofill __DATA,__bss,_verify_track.bufsz,4,2 ## @verify_track.bufsz
	.comm	_FD_GOPTS,4,2                   ## @FD_GOPTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: ioctl(FD_GOPTS)"

	.comm	_FDOPT_NORETRY,4,2              ## @FDOPT_NORETRY
	.comm	_FD_SOPTS,4,2                   ## @FD_SOPTS
	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.no_dead_strip	_verify_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_track
_verify_track:                          ; @verify_track
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _FD_GOPTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_GOPTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
Lloh3:
	adrp	x22, _FD_SOPTS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FD_SOPTS@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	str	w8, [sp, #8]
Lloh5:
	adrp	x9, _FDOPT_NORETRY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FDOPT_NORETRY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ioctl
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_3:
	adrp	x8, _verify_track.bufsz@PAGE
	ldr	w9, [x8, _verify_track.bufsz@PAGEOFF]
	adrp	x23, _verify_track.buf@PAGE
	ldr	x0, [x23, _verify_track.buf@PAGEOFF]
	cmp	w9, w20
	b.ge	LBB0_5
; %bb.4:
	str	w20, [x8, _verify_track.bufsz@PAGEOFF]
	mov	x1, x20
	bl	_realloc
	str	x0, [x23, _verify_track.buf@PAGEOFF]
LBB0_5:
	cbnz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_7:
	smull	x1, w20, w21
	mov	x0, x19
	mov	w2, #0
	bl	_lseek
	tbnz	x0, #63, LBB0_10
; %bb.8:
	ldr	x1, [x23, _verify_track.buf@PAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_read
	cmp	w0, w20
	b.ne	LBB0_11
; %bb.9:
	mov	w20, #0
	b	LBB0_12
LBB0_10:
	mov	w20, #-1
	b	LBB0_12
LBB0_11:
	ldr	x1, [x23, _verify_track.buf@PAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_read
	cmp	w0, w20
	csetm	w20, ne
LBB0_12:
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_verify_track.buf,8,3 ; @verify_track.buf
.zerofill __DATA,__bss,_verify_track.bufsz,4,2 ; @verify_track.bufsz
	.comm	_FD_GOPTS,4,2                   ; @FD_GOPTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: ioctl(FD_GOPTS)"

	.comm	_FDOPT_NORETRY,4,2              ; @FDOPT_NORETRY
	.comm	_FD_SOPTS,4,2                   ; @FD_SOPTS
	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.no_dead_strip	_verify_track
.subsections_via_symbols
