	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_resource
_get_resource:                          ## @get_resource
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%esi, %esi
	je	LBB0_13
## %bb.1:
	movq	%rcx, %r8
	xorl	%r9d, %r9d
	movl	%edx, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r9d
	movl	%ecx, %eax
	cmpl	%r9d, %esi
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r9d, %ecx
	shrl	$3, %ecx
	movl	(%rdi,%rcx,4), %r10d
	movl	%r9d, %ecx
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %r10d
	movl	%edx, %ecx
	jb	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%eax
	movl	%eax, %ecx
	jne	LBB0_12
## %bb.4:
	testl	%edx, %edx
	jle	LBB0_11
## %bb.5:
	testb	$1, %dl
	jne	LBB0_7
## %bb.6:
	movl	%edx, %esi
	cmpl	$1, %edx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_13:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	leal	7(%r9), %eax
	testl	%r9d, %r9d
	cmovnsl	%r9d, %eax
	sarl	$3, %eax
	movl	%r9d, %ecx
	andb	$7, %cl
	movl	$1, %esi
	shll	%cl, %esi
	cltq
	orl	%esi, (%rdi,%rax,4)
	decl	%r9d
	leal	-1(%rdx), %esi
	cmpl	$1, %edx
	je	LBB0_11
LBB0_9:
	decl	%esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	7(%r9), %eax
	testl	%r9d, %r9d
	cmovnsl	%r9d, %eax
	sarl	$3, %eax
	movl	%r9d, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	cltq
	orl	%edx, (%rdi,%rax,4)
	leal	-1(%r9), %ecx
	leal	6(%r9), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cltq
	orl	%edx, (%rdi,%rax,4)
	addl	$-2, %r9d
	addl	$-2, %esi
	jb	LBB0_10
LBB0_11:
	incl	%r9d
	movl	%r9d, (%r8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_get_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_resource
_get_resource:                          ; @get_resource
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_10
; %bb.1:
	mov	w8, #0
	mov	x9, x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	mov	x9, x10
	cmp	w1, w8
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w8, #3
	and	w11, w8, #0x7
	ldr	w10, [x0, w10, uxtw #2]
	lsr	w11, w10, w11
	mov	x10, x2
	tbnz	w11, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w10, w9, #1
	b.ne	LBB0_2
; %bb.5:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w9, #0
	add	w10, w2, #1
	mov	w11, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w8, w9
	add	w13, w12, #7
	cmp	w12, #0
	csel	w13, w13, w12, lt
	asr	w13, w13, #3
	and	w12, w12, #0x7
	lsl	w12, w11, w12
	sbfiz	x13, x13, #2, #32
	ldr	w14, [x0, x13]
	orr	w12, w14, w12
	str	w12, [x0, x13]
	sub	w9, w9, #1
	add	w12, w10, w9
	cmp	w12, #1
	b.hi	LBB0_7
; %bb.8:
	add	w8, w8, w9
LBB0_9:
	mov	w0, #0
	add	w8, w8, #1
	str	w8, [x3]
	ret
LBB0_10:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_get_resource
.subsections_via_symbols
