	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_setup
_hw_setup:                              ## @hw_setup
	.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	%rdi, %rbx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_H8300_IDE_GAP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	_CONFIG_H8300_IDE_BASE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, (%rcx)
	movq	(%rdx), %rdx
	leaq	(%rdx,%rax), %rsi
	movq	%rsi, 8(%rcx)
	leaq	(%rdx,%rax,2), %rsi
	movq	%rsi, 16(%rcx)
	leaq	(%rax,%rax,2), %rsi
	leaq	(%rdx,%rsi), %rdi
	movq	%rdi, 24(%rcx)
	leaq	(%rdx,%rax,4), %rdi
	movq	%rdi, 32(%rcx)
	leaq	(%rax,%rax,4), %rdi
	addq	%rdx, %rdi
	movq	%rdi, 40(%rcx)
	leaq	(%rdx,%rsi,2), %rsi
	movq	%rsi, 48(%rcx)
	leaq	(,%rax,8), %rsi
	subq	%rax, %rsi
	addq	%rdx, %rsi
	movq	%rsi, 56(%rcx)
	movq	_CONFIG_H8300_IDE_ALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_EXT_IRQ0@GOTPCREL(%rip), %rax
	movq	_CONFIG_H8300_IDE_IRQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_H8300_IDE_BASE,8,3      ## @CONFIG_H8300_IDE_BASE
	.comm	_H8300_IDE_GAP,4,2              ## @H8300_IDE_GAP
	.comm	_CONFIG_H8300_IDE_ALT,4,2       ## @CONFIG_H8300_IDE_ALT
	.comm	_EXT_IRQ0,8,3                   ## @EXT_IRQ0
	.comm	_CONFIG_H8300_IDE_IRQ,8,3       ## @CONFIG_H8300_IDE_IRQ
	.no_dead_strip	_hw_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_setup
_hw_setup:                              ; @hw_setup
	.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
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _H8300_IDE_GAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H8300_IDE_GAP@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	ldr	x9, [x19, #16]
Lloh3:
	adrp	x10, _CONFIG_H8300_IDE_BASE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CONFIG_H8300_IDE_BASE@GOTPAGEOFF]
	ldr	x11, [x10]
	str	x11, [x9]
	ldr	x10, [x10]
	add	x11, x10, x8
	lsl	x12, x8, #1
	add	x13, x10, x12
	stp	x11, x13, [x9, #8]
	add	x11, x12, x8
	add	x11, x10, x11
	lsl	x12, x8, #2
	add	x13, x10, x12
	stp	x11, x13, [x9, #24]
	add	x11, x12, x8
	add	x11, x10, x11
	mov	w12, #6
	madd	x12, x8, x12, x10
	stp	x11, x12, [x9, #40]
	lsl	x11, x8, #3
	sub	x8, x11, x8
	add	x8, x10, x8
	str	x8, [x9, #56]
Lloh5:
	adrp	x8, _CONFIG_H8300_IDE_ALT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_H8300_IDE_ALT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh8:
	adrp	x8, _EXT_IRQ0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXT_IRQ0@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _CONFIG_H8300_IDE_IRQ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONFIG_H8300_IDE_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_H8300_IDE_BASE,8,3      ; @CONFIG_H8300_IDE_BASE
	.comm	_H8300_IDE_GAP,4,2              ; @H8300_IDE_GAP
	.comm	_CONFIG_H8300_IDE_ALT,4,2       ; @CONFIG_H8300_IDE_ALT
	.comm	_EXT_IRQ0,8,3                   ; @EXT_IRQ0
	.comm	_CONFIG_H8300_IDE_IRQ,8,3       ; @CONFIG_H8300_IDE_IRQ
	.no_dead_strip	_hw_setup
.subsections_via_symbols
