	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ent_count
_get_ent_count:                         ## @get_ent_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.3:
	movl	4(%rdi), %eax
	cltd
	idivl	%ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
## %bb.4:
	movl	8(%rdi), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	movl	8(%rdi), %esi
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_warnx
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, (%rsi)
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"section %s has entry size 0"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"section %s has invalid section count"

	.no_dead_strip	_get_ent_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ent_count
_get_ent_count:                         ; @get_ent_count
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w9, [x0, #4]
	sdiv	w8, w9, w8
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_5
; %bb.2:
	ldr	w1, [x0, #8]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w1, [x0, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_warnx
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	w8, [x1]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"section %s has entry size 0"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"section %s has invalid section count"

	.no_dead_strip	_get_ent_count
.subsections_via_symbols
