	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_program_headers
_get_program_headers:                   ## @get_program_headers
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_program_headers@GOTPCREL(%rip), %r12
	movl	$1, %ebx
	cmpq	$0, (%r12)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	_elf_header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_cmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_is_32bit_elf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_get_32bit_program_headers
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	%r14, (%r12)
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_get_64bit_program_headers
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_program_headers,8,3            ## @program_headers
	.comm	_elf_header,4,2                 ## @elf_header
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory\n"

	.comm	_is_32bit_elf,8,3               ## @is_32bit_elf
	.no_dead_strip	_get_program_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_program_headers
_get_program_headers:                   ; @get_program_headers
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _program_headers@GOTPAGE
Lloh1:
	ldr	x21, [x21, _program_headers@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x0
Lloh2:
	adrp	x8, _elf_header@GOTPAGE
Lloh3:
	ldr	x8, [x8, _elf_header@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_cmalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x19, x0
Lloh5:
	adrp	x8, _is_32bit_elf@GOTPAGE
Lloh6:
	ldr	x8, [x8, _is_32bit_elf@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_get_32bit_program_headers
	cbz	x0, LBB0_9
LBB0_6:
	str	x19, [x21]
	b	LBB0_1
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_error
	mov	w0, #0
	b	LBB0_2
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_get_64bit_program_headers
	cbnz	x0, LBB0_6
LBB0_9:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_program_headers,8,3            ; @program_headers
	.comm	_elf_header,4,2                 ; @elf_header
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory\n"

	.comm	_is_32bit_elf,8,3               ; @is_32bit_elf
	.no_dead_strip	_get_program_headers
.subsections_via_symbols
