	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttl_setup_device
_ttl_setup_device:                      ## @ttl_setup_device
	.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
	movq	(%rdi), %rsi
	addq	$12, %rsi
	xorl	%edi, %edi
	callq	_iowrite16be
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movl	$1, %edi
	callq	_iowrite16be
	movq	(%rbx), %rsi
	addq	$12, %rsi
	xorl	%edi, %edi
	callq	_iowrite16be
	movq	_PORTA_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_ttl_write_reg
	movq	_PORTB_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_ttl_write_reg
	movq	_PORTC_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_ttl_write_reg
	movq	_PORTA_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ttl_write_reg
	movq	_PORTB_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ttl_write_reg
	movq	_PORTC_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ttl_write_reg
	movq	(%rbx), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	callq	_iowrite16be
	movq	(%rbx), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite16be
	movq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite16be
	movq	_MASTER_CONF_CTL@GOTPCREL(%rip), %rax
	movq	_CONF_PAE@GOTPCREL(%rip), %rcx
	movq	_CONF_PBE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_CONF_PCE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ttl_write_reg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORTA_IOCTL,4,2                ## @PORTA_IOCTL
	.comm	_PORTB_IOCTL,4,2                ## @PORTB_IOCTL
	.comm	_PORTC_IOCTL,4,2                ## @PORTC_IOCTL
	.comm	_PORTA_DIRECTION,4,2            ## @PORTA_DIRECTION
	.comm	_PORTB_DIRECTION,4,2            ## @PORTB_DIRECTION
	.comm	_PORTC_DIRECTION,4,2            ## @PORTC_DIRECTION
	.comm	_MASTER_CONF_CTL,4,2            ## @MASTER_CONF_CTL
	.comm	_CONF_PAE,4,2                   ## @CONF_PAE
	.comm	_CONF_PBE,4,2                   ## @CONF_PBE
	.comm	_CONF_PCE,4,2                   ## @CONF_PCE
	.no_dead_strip	_ttl_setup_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttl_setup_device
_ttl_setup_device:                      ; @ttl_setup_device
	.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	x8, [x0]
	add	x1, x8, #12
	mov	w0, #0
	bl	_iowrite16be
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	w0, #1
	bl	_iowrite16be
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	w0, #0
	bl	_iowrite16be
Lloh0:
	adrp	x8, _PORTA_IOCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORTA_IOCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_ttl_write_reg
Lloh3:
	adrp	x8, _PORTB_IOCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORTB_IOCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_ttl_write_reg
Lloh6:
	adrp	x8, _PORTC_IOCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORTC_IOCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15
	bl	_ttl_write_reg
Lloh9:
	adrp	x8, _PORTA_DIRECTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORTA_DIRECTION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ttl_write_reg
Lloh12:
	adrp	x8, _PORTB_DIRECTION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PORTB_DIRECTION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ttl_write_reg
Lloh15:
	adrp	x8, _PORTC_DIRECTION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORTC_DIRECTION@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ttl_write_reg
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	w0, #0
	bl	_iowrite16be
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	w0, #0
	bl	_iowrite16be
	ldr	x1, [x19]
	mov	w0, #0
	bl	_iowrite16be
Lloh18:
	adrp	x8, _MASTER_CONF_CTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MASTER_CONF_CTL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _CONF_PAE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONF_PAE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _CONF_PBE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CONF_PBE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _CONF_PCE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CONF_PCE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh29:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ttl_write_reg
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PORTA_IOCTL,4,2                ; @PORTA_IOCTL
	.comm	_PORTB_IOCTL,4,2                ; @PORTB_IOCTL
	.comm	_PORTC_IOCTL,4,2                ; @PORTC_IOCTL
	.comm	_PORTA_DIRECTION,4,2            ; @PORTA_DIRECTION
	.comm	_PORTB_DIRECTION,4,2            ; @PORTB_DIRECTION
	.comm	_PORTC_DIRECTION,4,2            ; @PORTC_DIRECTION
	.comm	_MASTER_CONF_CTL,4,2            ; @MASTER_CONF_CTL
	.comm	_CONF_PAE,4,2                   ; @CONF_PAE
	.comm	_CONF_PBE,4,2                   ; @CONF_PBE
	.comm	_CONF_PCE,4,2                   ; @CONF_PCE
	.no_dead_strip	_ttl_setup_device
.subsections_via_symbols
