	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_block_value
_get_block_value:                       ## @get_block_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	-40(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	callq	_dwarf_get_elf
	movq	_DW_DLV_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_gelf_getehdr
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.3:
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	movl	-20(%rbp), %edi
	callq	_dwarf_errmsg
	leaq	L_.str(%rip), %rdi
LBB0_4:
	movl	%eax, %esi
	callq	_warnx
	xorl	%eax, %eax
LBB0_13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %ecx
	cmpl	$9, %ecx
	je	LBB0_10
## %bb.6:
	xorl	%eax, %eax
	cmpl	$5, %ecx
	jne	LBB0_13
## %bb.7:
	movq	-32(%rbp), %rax
	movq	_EI_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_ELFDATA2LSB@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rdi
	addq	$4, %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	callq	_le32dec
	jmp	LBB0_13
LBB0_10:
	movq	-32(%rbp), %rax
	movq	_EI_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_ELFDATA2LSB@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rdi
	addq	$4, %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	callq	_le64dec
	jmp	LBB0_13
LBB0_9:
	callq	_be32dec
	jmp	LBB0_13
LBB0_12:
	callq	_be64dec
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_DLV_OK,8,3                  ## @DW_DLV_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dwarf_get_elf failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"gelf_getehdr failed: %s"

	.comm	_EI_DATA,8,3                    ## @EI_DATA
	.comm	_ELFDATA2LSB,8,3                ## @ELFDATA2LSB
	.no_dead_strip	_get_block_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_block_value
_get_block_value:                       ; @get_block_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	add	x1, sp, #24
	add	x2, sp, #12
	bl	_dwarf_get_elf
Lloh0:
	adrp	x8, _DW_DLV_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DW_DLV_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
	add	x20, sp, #16
	add	x1, sp, #16
	bl	_gelf_getehdr
	cmp	x0, x20
	b.eq	LBB0_7
; %bb.2:
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_dwarf_errmsg
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_warnx
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #9
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #5
	b.ne	LBB0_5
; %bb.9:
	ldr	x8, [sp, #16]
Lloh7:
	adrp	x9, _EI_DATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EI_DATA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh10:
	adrp	x9, _ELFDATA2LSB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ELFDATA2LSB@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	add	x0, x10, #4
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	bl	_le32dec
	b	LBB0_6
LBB0_11:
	ldr	x8, [sp, #16]
Lloh13:
	adrp	x9, _EI_DATA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EI_DATA@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh16:
	adrp	x9, _ELFDATA2LSB@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ELFDATA2LSB@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	add	x0, x10, #4
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	bl	_le64dec
	b	LBB0_6
LBB0_13:
	bl	_be32dec
	b	LBB0_6
LBB0_14:
	bl	_be64dec
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_DLV_OK,8,3                  ; @DW_DLV_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dwarf_get_elf failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"gelf_getehdr failed: %s"

	.comm	_EI_DATA,8,3                    ; @EI_DATA
	.comm	_ELFDATA2LSB,8,3                ; @ELFDATA2LSB
	.no_dead_strip	_get_block_value
.subsections_via_symbols
