	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldlang_open_output
_ldlang_open_output:                    ## @ldlang_open_output
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.2:
	movq	_output_bfd@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_ASSERT
	movl	4(%rbx), %edi
	callq	_open_output
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	_ldemul_set_output_arch
	movq	_config@GOTPCREL(%rip), %rsi
	cmpl	$0, 4(%rsi)
	movq	_link_info@GOTPCREL(%rip), %rcx
	movq	_D_PAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_6
## %bb.3:
	cmpl	$0, 4(%rcx)
	jne	LBB0_6
## %bb.4:
	movq	(%r14), %rdx
	orl	(%rdx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	(%rbx), %eax
	movq	_current_target@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_6:
	notl	%eax
	movq	(%r14), %rdx
	andl	(%rdx), %eax
LBB0_7:
	movl	%eax, (%rdx)
	cmpl	$0, (%rsi)
	movq	_WP_TEXT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	je	LBB0_9
## %bb.8:
	orl	%esi, %eax
	jmp	LBB0_10
LBB0_9:
	notl	%esi
	andl	%esi, %eax
LBB0_10:
	movl	%eax, (%rdx)
	cmpl	$0, (%rcx)
	movq	_BFD_TRADITIONAL_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_12
## %bb.11:
	orl	%ecx, %eax
	jmp	LBB0_13
LBB0_12:
	notl	%ecx
	andl	%ecx, %eax
LBB0_13:
	movl	%eax, (%rdx)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_output_bfd,8,3                 ## @output_bfd
	.comm	_config,8,2                     ## @config
	.comm	_link_info,8,2                  ## @link_info
	.comm	_D_PAGED,4,2                    ## @D_PAGED
	.comm	_WP_TEXT,4,2                    ## @WP_TEXT
	.comm	_BFD_TRADITIONAL_FORMAT,4,2     ## @BFD_TRADITIONAL_FORMAT
	.comm	_current_target,4,2             ## @current_target
	.no_dead_strip	_ldlang_open_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldlang_open_output
_ldlang_open_output:                    ; @ldlang_open_output
	.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
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.2:
Lloh0:
	adrp	x20, _output_bfd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _output_bfd@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_ASSERT
	ldr	w0, [x19, #4]
	bl	_open_output
	str	x0, [x20]
	bl	_ldemul_set_output_arch
Lloh2:
	adrp	x10, _config@GOTPAGE
Lloh3:
	ldr	x10, [x10, _config@GOTPAGEOFF]
	ldr	w9, [x10, #4]
Lloh4:
	adrp	x8, _link_info@GOTPAGE
Lloh5:
	ldr	x8, [x8, _link_info@GOTPAGEOFF]
	ldr	w12, [x8, #4]
Lloh6:
	adrp	x11, _D_PAGED@GOTPAGE
Lloh7:
	ldr	x11, [x11, _D_PAGED@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w9, #0
	ccmp	w12, #0, #0, ne
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x20]
	ldr	w12, [x9]
	bic	w11, w12, w11
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _current_target@GOTPAGE
Lloh10:
	ldr	x9, [x9, _current_target@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	ldr	x9, [x20]
	ldr	w12, [x9]
	orr	w11, w12, w11
LBB0_6:
	str	w11, [x9]
	ldr	w12, [x10]
Lloh11:
	adrp	x10, _WP_TEXT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WP_TEXT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cbz	w12, LBB0_8
; %bb.7:
	orr	w10, w11, w10
	b	LBB0_9
LBB0_8:
	bic	w10, w11, w10
LBB0_9:
	str	w10, [x9]
	ldr	w11, [x8]
Lloh14:
	adrp	x8, _BFD_TRADITIONAL_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BFD_TRADITIONAL_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w11, LBB0_11
; %bb.10:
	orr	w8, w10, w8
	b	LBB0_12
LBB0_11:
	bic	w8, w10, w8
LBB0_12:
	str	w8, [x9]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_output_bfd,8,3                 ; @output_bfd
	.comm	_config,8,2                     ; @config
	.comm	_link_info,8,2                  ; @link_info
	.comm	_D_PAGED,4,2                    ; @D_PAGED
	.comm	_WP_TEXT,4,2                    ; @WP_TEXT
	.comm	_BFD_TRADITIONAL_FORMAT,4,2     ; @BFD_TRADITIONAL_FORMAT
	.comm	_current_target,4,2             ; @current_target
	.no_dead_strip	_ldlang_open_output
.subsections_via_symbols
