	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_elf_discard_section_eh_frame_hdr ## -- Begin function _bfd_elf_discard_section_eh_frame_hdr
	.p2align	4, 0x90
__bfd_elf_discard_section_eh_frame_hdr: ## @_bfd_elf_discard_section_eh_frame_hdr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_elf_hash_table
	movq	%rax, %rbx
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_htab_delete
	movq	$0, 24(%rbx)
LBB0_2:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	_EH_FRAME_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %ecx
	leal	(%rax,%rcx,8), %eax
	addl	$4, %eax
	movl	%eax, (%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_elf_tdata
	movq	%r15, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_EH_FRAME_HDR_SIZE,4,2          ## @EH_FRAME_HDR_SIZE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_elf_discard_section_eh_frame_hdr ; -- Begin function _bfd_elf_discard_section_eh_frame_hdr
	.p2align	2
__bfd_elf_discard_section_eh_frame_hdr: ; @_bfd_elf_discard_section_eh_frame_hdr
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_elf_hash_table
	mov	x20, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_htab_delete
	str	xzr, [x20, #24]
LBB0_2:
	ldr	x21, [x20, #16]
	cbz	x21, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EH_FRAME_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EH_FRAME_HDR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w9, [x20]
	add	w8, w8, w9, lsl #3
	add	w8, w8, #4
	str	w8, [x21]
LBB0_5:
	mov	x0, x19
	bl	_elf_tdata
	str	x21, [x0]
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_EH_FRAME_HDR_SIZE,4,2          ; @EH_FRAME_HDR_SIZE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
