	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wr_hd
_wr_hd:                                 ## @wr_hd
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	_abfd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_bfd_get_file_flags
	movq	_EXEC_P@GOTPCREL(%rip), %r15
	andl	(%r15), %eax
	jne	LBB0_1
## %bb.2:
	movq	_MTYPE_OMS_OR_LMS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MTYPE_ABS_LM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_DATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -152(%rbp)
	movl	(%r14), %edi
	callq	_bfd_get_arch
	cmpl	$131, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$132, %eax
	jne	LBB0_11
## %bb.5:
	movabsq	$137438953480, %rax             ## imm = 0x2000000008
	movq	%rax, -144(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	(%r14), %edi
	callq	_bfd_get_mach
	cmpl	$128, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -136(%rbp)
	movl	$2, -128(%rbp)
	movq	_rname_h8300@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	movl	$2, %edx
	jmp	LBB0_14
LBB0_10:
	movabsq	$137438953480, %rax             ## imm = 0x2000000008
	movq	%rax, -144(%rbp)
	movl	$0, -64(%rbp)
	movl	$4, -128(%rbp)
	movq	$0, -72(%rbp)
	leaq	L_.str.7(%rip), %rax
	movq	%rax, -136(%rbp)
	movq	_rname_sh@GOTPCREL(%rip), %rax
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -136(%rbp)
	movl	$4, -128(%rbp)
	movq	_rname_h8300@GOTPCREL(%rip), %rax
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -136(%rbp)
	movl	$4, -128(%rbp)
	movq	_rname_h8300@GOTPCREL(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
LBB0_13:
	movl	$4, %edx
LBB0_14:
	movq	_addrsize@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movq	_toolname@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	(%rax), %eax
	movq	_rnames@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r14), %edi
	callq	_bfd_get_file_flags
	testl	%eax, %eax
	sete	%cl
	xorl	%eax, %eax
	testb	%cl, (%r15)
	jne	LBB0_16
## %bb.15:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movl	(%r14), %edi
	callq	_bfd_get_start_address
	movl	%eax, -100(%rbp)
	movl	$1, %eax
LBB0_16:
	movl	%eax, -124(%rbp)
	leaq	L_.str.9(%rip), %rax
	movq	%rax, -120(%rbp)
	movq	%rax, -112(%rbp)
	movl	(%r14), %edi
	callq	_bfd_get_filename
	movl	%eax, %edi
	callq	_strip_suffix
	movl	%eax, -104(%rbp)
	movq	_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-152(%rbp), %rsi
	callq	_sysroff_swap_hd_out
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_abfd,4,2                       ## @abfd
	.comm	_EXEC_P,4,2                     ## @EXEC_P
	.comm	_MTYPE_ABS_LM,4,2               ## @MTYPE_ABS_LM
	.comm	_MTYPE_OMS_OR_LMS,4,2           ## @MTYPE_OMS_OR_LMS
	.comm	_DATE,4,2                       ## @DATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0200"

L_.str.1:                               ## @.str.1
	.asciz	"H8300"

	.comm	_addrsize,4,2                   ## @addrsize
L_.str.2:                               ## @.str.2
	.asciz	"C_H8/300"

	.comm	_toolname,8,3                   ## @toolname
L_.str.3:                               ## @.str.3
	.asciz	"H8300H"

L_.str.4:                               ## @.str.4
	.asciz	"C_H8/300H"

L_.str.5:                               ## @.str.5
	.asciz	"H8300S"

L_.str.6:                               ## @.str.6
	.asciz	"C_H8/300S"

	.comm	_rname_h8300,4,2                ## @rname_h8300
	.comm	_rnames,4,2                     ## @rnames
L_.str.7:                               ## @.str.7
	.asciz	"SH"

L_.str.8:                               ## @.str.8
	.asciz	"C_SH"

	.comm	_rname_sh,4,2                   ## @rname_sh
L_.str.9:                               ## @.str.9
	.space	1

	.comm	_file,4,2                       ## @file
	.no_dead_strip	_wr_hd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wr_hd
lCPI0_0:
	.long	8                               ; 0x8
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wr_hd:                                 ; @wr_hd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	xzr, [sp, #120]
Lloh0:
	adrp	x20, _abfd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _abfd@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_bfd_get_file_flags
Lloh2:
	adrp	x21, _EXEC_P@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EXEC_P@GOTPAGEOFF]
Lloh4:
	adrp	x8, _MTYPE_OMS_OR_LMS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MTYPE_OMS_OR_LMS@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh6:
	adrp	x10, _MTYPE_ABS_LM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MTYPE_ABS_LM@GOTPAGEOFF]
	tst	w9, w0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #112]
Lloh8:
	adrp	x8, _DATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DATE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	w9, w8, [sp, #104]
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
	str	xzr, [sp, #96]
	str	x8, [sp]
	ldr	w0, [x20]
	bl	_bfd_get_arch
	cmp	w0, #131
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #132
	b.ne	LBB0_13
; %bb.2:
	str	wzr, [sp, #88]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	str	xzr, [sp, #80]
	ldr	w0, [x20]
	bl	_bfd_get_mach
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w0, #130
	b.ne	LBB0_13
; %bb.5:
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #16]
	mov	w8, #2
	str	w8, [sp, #24]
Lloh17:
	adrp	x9, _rname_h8300@GOTPAGE
Lloh18:
	ldr	x9, [x9, _rname_h8300@GOTPAGEOFF]
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	w8, #4
Lloh21:
	adrp	x9, lCPI0_0@PAGE
Lloh22:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	str	wzr, [sp, #88]
	str	xzr, [sp, #80]
Lloh23:
	adrp	x9, l_.str.7@PAGE
Lloh24:
	add	x9, x9, l_.str.7@PAGEOFF
	str	w8, [sp, #24]
	str	x9, [sp, #16]
Lloh25:
	adrp	x9, _rname_sh@GOTPAGE
Lloh26:
	ldr	x9, [x9, _rname_sh@GOTPAGEOFF]
Lloh27:
	adrp	x10, l_.str.8@PAGE
Lloh28:
	add	x10, x10, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh29:
	adrp	x8, l_.str.5@PAGE
Lloh30:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #24]
Lloh31:
	adrp	x9, _rname_h8300@GOTPAGE
Lloh32:
	ldr	x9, [x9, _rname_h8300@GOTPAGEOFF]
Lloh33:
	adrp	x10, l_.str.6@PAGE
Lloh34:
	add	x10, x10, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x8, l_.str.3@PAGE
Lloh36:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #24]
Lloh37:
	adrp	x9, _rname_h8300@GOTPAGE
Lloh38:
	ldr	x9, [x9, _rname_h8300@GOTPAGEOFF]
Lloh39:
	adrp	x10, l_.str.4@PAGE
Lloh40:
	add	x10, x10, l_.str.4@PAGEOFF
LBB0_9:
Lloh41:
	adrp	x11, _addrsize@GOTPAGE
Lloh42:
	ldr	x11, [x11, _addrsize@GOTPAGEOFF]
Lloh43:
	str	w8, [x11]
Lloh44:
	adrp	x8, _toolname@GOTPAGE
Lloh45:
	ldr	x8, [x8, _toolname@GOTPAGEOFF]
Lloh46:
	str	x10, [x8]
	ldr	w8, [x9]
Lloh47:
	adrp	x9, _rnames@GOTPAGE
Lloh48:
	ldr	x9, [x9, _rnames@GOTPAGEOFF]
Lloh49:
	str	w8, [x9]
	ldr	w0, [x20]
	bl	_bfd_get_file_flags
	cmp	w0, #0
	cset	w8, eq
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #0
	b	LBB0_12
LBB0_11:
	stp	xzr, xzr, [sp, #56]
	str	xzr, [sp, #72]
	ldr	w0, [x20]
	bl	_bfd_get_start_address
	str	w0, [sp, #52]
	mov	w8, #1
LBB0_12:
	str	w8, [sp, #28]
Lloh50:
	adrp	x8, l_.str.9@PAGE
Lloh51:
	add	x8, x8, l_.str.9@PAGEOFF
	stp	x8, x8, [sp, #32]
	ldr	w0, [x20]
	bl	_bfd_get_filename
	bl	_strip_suffix
	str	w0, [sp, #48]
Lloh52:
	adrp	x8, _file@GOTPAGE
Lloh53:
	ldr	x8, [x8, _file@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_sysroff_swap_hd_out
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	bl	_abort
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_abfd,4,2                       ; @abfd
	.comm	_EXEC_P,4,2                     ; @EXEC_P
	.comm	_MTYPE_ABS_LM,4,2               ; @MTYPE_ABS_LM
	.comm	_MTYPE_OMS_OR_LMS,4,2           ; @MTYPE_OMS_OR_LMS
	.comm	_DATE,4,2                       ; @DATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0200"

l_.str.1:                               ; @.str.1
	.asciz	"H8300"

	.comm	_addrsize,4,2                   ; @addrsize
l_.str.2:                               ; @.str.2
	.asciz	"C_H8/300"

	.comm	_toolname,8,3                   ; @toolname
l_.str.3:                               ; @.str.3
	.asciz	"H8300H"

l_.str.4:                               ; @.str.4
	.asciz	"C_H8/300H"

l_.str.5:                               ; @.str.5
	.asciz	"H8300S"

l_.str.6:                               ; @.str.6
	.asciz	"C_H8/300S"

	.comm	_rname_h8300,4,2                ; @rname_h8300
	.comm	_rnames,4,2                     ; @rnames
l_.str.7:                               ; @.str.7
	.asciz	"SH"

l_.str.8:                               ; @.str.8
	.asciz	"C_SH"

	.comm	_rname_sh,4,2                   ; @rname_sh
l_.str.9:                               ; @.str.9
	.space	1

	.comm	_file,4,2                       ; @file
	.no_dead_strip	_wr_hd
.subsections_via_symbols
