	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunos_write_object_contents
_sunos_write_object_contents:           ## @sunos_write_object_contents
	.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
	callq	_exec_hdr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_bfd_get_arch
	cmpl	$133, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$135, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$134, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_bfd_get_mach
	cmpl	$131, %eax
	jne	LBB0_5
## %bb.6:
	movq	_M_68010@GOTPCREL(%rip), %rcx
	cmpl	$132, %eax
	je	LBB0_8
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, %rdi
	callq	_bfd_get_mach
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.11:
	movq	_M_SPARCLITE_LE@GOTPCREL(%rip), %rcx
	cmpl	$129, %eax
	je	LBB0_13
	jmp	LBB0_14
LBB0_2:
	movq	_M_386@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_5:
	movq	_M_68020@GOTPCREL(%rip), %rcx
	cmpl	$132, %eax
	jne	LBB0_14
LBB0_8:
	movq	_M_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_10:
	movq	_M_SPARC@GOTPCREL(%rip), %rcx
	cmpl	$129, %eax
	jne	LBB0_14
LBB0_13:
	movq	_M_SPARCLET@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %esi
	movl	(%r14), %edi
	callq	_N_SET_MACHTYPE
	movq	%rbx, %rdi
	callq	_choose_reloc_size
	movq	%rbx, %rdi
	callq	_aout_backend_info
	movl	(%rax), %esi
	movl	(%r14), %edi
	callq	_N_SET_FLAGS
	movq	%rbx, %rdi
	callq	_bfd_get_file_flags
	movq	_DYNAMIC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%eax, %rsi
	movl	(%r14), %edi
	callq	_N_SET_DYNAMIC
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_WRITE_HEADERS
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_UNKNOWN,4,2                  ## @M_UNKNOWN
	.comm	_M_68010,4,2                    ## @M_68010
	.comm	_M_68020,4,2                    ## @M_68020
	.comm	_M_SPARCLET,4,2                 ## @M_SPARCLET
	.comm	_M_SPARCLITE_LE,4,2             ## @M_SPARCLITE_LE
	.comm	_M_SPARC,4,2                    ## @M_SPARC
	.comm	_M_386,4,2                      ## @M_386
	.comm	_DYNAMIC,4,2                    ## @DYNAMIC
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_sunos_write_object_contents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunos_write_object_contents
_sunos_write_object_contents:           ; @sunos_write_object_contents
	.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
	bl	_exec_hdr
	mov	x20, x0
	mov	x0, x19
	bl	_bfd_get_arch
	cmp	w0, #133
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #135
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #134
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_bfd_get_mach
Lloh0:
	adrp	x8, _M_68020@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_68020@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_68010@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_68010@GOTPAGEOFF]
	cmp	w0, #131
	csel	x8, x9, x8, eq
Lloh4:
	adrp	x9, _M_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_UNKNOWN@GOTPAGEOFF]
	cmp	w0, #132
	csel	x8, x9, x8, eq
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_bfd_get_mach
Lloh6:
	adrp	x8, _M_SPARC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_SPARC@GOTPAGEOFF]
Lloh8:
	adrp	x9, _M_SPARCLITE_LE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_SPARCLITE_LE@GOTPAGEOFF]
	cmp	w0, #128
	csel	x8, x9, x8, eq
Lloh10:
	adrp	x9, _M_SPARCLET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_SPARCLET@GOTPAGEOFF]
	cmp	w0, #129
	csel	x8, x9, x8, eq
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _M_386@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_386@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _M_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M_UNKNOWN@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	ldr	w0, [x20]
	bl	_N_SET_MACHTYPE
	mov	x0, x19
	bl	_choose_reloc_size
	mov	x0, x19
	bl	_aout_backend_info
	ldr	w1, [x0]
	ldr	w0, [x20]
	bl	_N_SET_FLAGS
	mov	x0, x19
	bl	_bfd_get_file_flags
Lloh16:
	adrp	x8, _DYNAMIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DYNAMIC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w0
	sxtw	x1, w8
	ldr	w0, [x20]
	bl	_N_SET_DYNAMIC
	mov	x0, x19
	mov	x1, x20
	bl	_WRITE_HEADERS
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_M_UNKNOWN,4,2                  ; @M_UNKNOWN
	.comm	_M_68010,4,2                    ; @M_68010
	.comm	_M_68020,4,2                    ; @M_68020
	.comm	_M_SPARCLET,4,2                 ; @M_SPARCLET
	.comm	_M_SPARCLITE_LE,4,2             ; @M_SPARCLITE_LE
	.comm	_M_SPARC,4,2                    ; @M_SPARC
	.comm	_M_386,4,2                      ; @M_386
	.comm	_DYNAMIC,4,2                    ; @DYNAMIC
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_sunos_write_object_contents
.subsections_via_symbols
