	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ixp4xx_setup_port
LCPI0_0:
	.quad	3                               ## 0x3
	.quad	3                               ## 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ixp4xx_setup_port:                     ## @ixp4xx_setup_port
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	addq	$6, %r15
	movl	8(%rsi), %eax
	movl	%eax, 56(%rdi)
	movq	(%rsi), %rax
	addq	$6, %rax
	movq	%rax, 48(%rdi)
	movq	%rax, 40(%rdi)
	callq	_ata_sff_std_ports
	xorb	$2, 60(%rbx)
	movups	48(%rbx), %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [3,3]
	xorps	%xmm1, %xmm0
	movups	%xmm0, 48(%rbx)
	movups	32(%rbx), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm0, 32(%rbx)
	xorb	$3, 28(%rbx)
	xorb	$3, 24(%rbx)
	xorb	$3, 20(%rbx)
	xorb	$3, 16(%rbx)
	xorb	$3, 12(%rbx)
	xorb	$3, 8(%rbx)
	xorb	$3, 4(%rbx)
	xorb	$3, (%rbx)
	xorq	$3, %r14
	xorq	$3, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_port_desc                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd 0x%lx ctl 0x%lx"

	.no_dead_strip	_ixp4xx_setup_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixp4xx_setup_port
_ixp4xx_setup_port:                     ; @ixp4xx_setup_port
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x0
	add	x21, x3, #6
	ldr	w8, [x1, #8]
	str	w8, [x0, #56]
	ldr	x8, [x1]
	add	x8, x8, #6
	stp	x8, x8, [x0, #40]
	bl	_ata_sff_std_ports
	ldur	x8, [x20, #60]
	eor	x8, x8, #0x2
	stur	x8, [x20, #60]
	mov	w8, #3
	dup.2d	v0, x8
	ldp	q2, q1, [x20, #32]
	eor.16b	v1, v1, v0
	eor.16b	v0, v2, v0
	stp	q0, q1, [x20, #32]
	ldur	x8, [x20, #28]
	eor	x8, x8, #0x3
	stur	x8, [x20, #28]
	ldr	x8, [x20, #24]
	eor	x8, x8, #0x3
	str	x8, [x20, #24]
	ldur	x8, [x20, #20]
	eor	x8, x8, #0x3
	stur	x8, [x20, #20]
	ldr	x8, [x20, #16]
	eor	x8, x8, #0x3
	str	x8, [x20, #16]
	ldur	x8, [x20, #12]
	eor	x8, x8, #0x3
	stur	x8, [x20, #12]
	ldr	x8, [x20, #8]
	eor	x8, x8, #0x3
	str	x8, [x20, #8]
	ldur	x8, [x20, #4]
	eor	x8, x8, #0x3
	stur	x8, [x20, #4]
	ldr	x8, [x20]
	eor	x8, x8, #0x3
	str	x8, [x20]
	eor	x2, x19, #0x3
	eor	x3, x21, #0x3
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ata_port_desc
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd 0x%lx ctl 0x%lx"

	.no_dead_strip	_ixp4xx_setup_port
.subsections_via_symbols
