	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getfsquota
_getfsquota:                            ## @getfsquota
	.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, %r15
	movl	%edi, %ebx
	movq	%rdx, -80(%rbp)
	leaq	_getfsquota.blank(%rip), %rax
	movq	%rax, -72(%rbp)
	movq	%rax, -64(%rbp)
	movq	_USRQUOTA@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_GRPQUOTA@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
LBB0_2:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rdi
	movl	%ebx, %esi
	callq	_quota_open
	movq	%rax, %r14
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_warnx
LBB0_4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_quota_read
	xorl	%r13d, %r13d
	testq	%rax, %rax
	sete	%r13b
	movq	%r14, %rdi
	callq	_quota_close
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_warnx
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getfsquota.blank,1,0 ## @getfsquota.blank
	.comm	_USRQUOTA,4,2                   ## @USRQUOTA
	.comm	_GRPQUOTA,4,2                   ## @GRPQUOTA
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"quota_open(<%s, %s>, %d) returned %p"

L_.str.1:                               ## @.str.1
	.asciz	"getfsquota(%d, %ld, %s, %p) -> %d"

	.no_dead_strip	_getfsquota
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getfsquota
_getfsquota:                            ; @getfsquota
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, _getfsquota.blank@PAGE
Lloh1:
	add	x8, x8, _getfsquota.blank@PAGEOFF
	stp	x2, x8, [sp, #40]
	str	x8, [sp, #56]
Lloh2:
	adrp	x8, _USRQUOTA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USRQUOTA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GRPQUOTA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GRPQUOTA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, sp, #40
	mov	x1, x22
	bl	_quota_open
	mov	x23, x0
Lloh11:
	adrp	x25, _debug@GOTPAGE
Lloh12:
	ldr	x25, [x25, _debug@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	x8, x9, [sp, #40]
	stp	x22, x23, [sp, #16]
	stp	x8, x9, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_3:
	cbz	x23, LBB0_6
; %bb.4:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_quota_read
	cmp	x0, #0
	cset	w24, eq
	mov	x0, x23
	bl	_quota_close
	ldr	x8, [x25]
	cbz	x8, LBB0_7
; %bb.5:
	stp	x21, x24, [sp, #24]
	stp	x19, x20, [sp, #8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_7
LBB0_6:
	mov	w24, #0
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getfsquota.blank,1,0 ; @getfsquota.blank
	.comm	_USRQUOTA,4,2                   ; @USRQUOTA
	.comm	_GRPQUOTA,4,2                   ; @GRPQUOTA
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"quota_open(<%s, %s>, %d) returned %p"

l_.str.1:                               ; @.str.1
	.asciz	"getfsquota(%d, %ld, %s, %p) -> %d"

	.no_dead_strip	_getfsquota
.subsections_via_symbols
