	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_malloc2                    ## -- Begin function bfd_malloc2
	.p2align	4, 0x90
_bfd_malloc2:                           ## @bfd_malloc2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rax
	orq	%rdi, %rax
	movq	_HALF_BFD_SIZE_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.2:
	movq	$-1, %rax
	cqto
	idivq	%rbx
	cmpq	%rdi, %rax
	jl	LBB0_5
LBB0_3:
	imulq	%rdi, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_bfd_error_no_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HALF_BFD_SIZE_TYPE,8,3         ## @HALF_BFD_SIZE_TYPE
	.comm	_bfd_error_no_memory,4,2        ## @bfd_error_no_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_malloc2                    ; -- Begin function bfd_malloc2
	.p2align	2
_bfd_malloc2:                           ; @bfd_malloc2
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_3
; %bb.1:
	orr	x8, x1, x0
Lloh0:
	adrp	x9, _HALF_BFD_SIZE_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HALF_BFD_SIZE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.2:
	mov	x8, #-1
	sdiv	x8, x8, x1
	cmp	x8, x0
	b.lt	LBB0_4
LBB0_3:
	mul	x19, x1, x0
	mov	x0, x19
	bl	_malloc
	cmp	x19, #0
	ccmp	x0, #0, #0, ne
	b.ne	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _bfd_error_no_memory@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfd_error_no_memory@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_bfd_set_error
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HALF_BFD_SIZE_TYPE,8,3         ; @HALF_BFD_SIZE_TYPE
	.comm	_bfd_error_no_memory,4,2        ; @bfd_error_no_memory
.subsections_via_symbols
