	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_dev_select             ## -- Begin function ata_sff_dev_select
	.p2align	4, 0x90
_ata_sff_dev_select:                    ## @ata_sff_dev_select
	.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
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_ATA_DEVICE_OBS@GOTPCREL(%rip), %rcx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_ATA_DEV1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_iowrite8
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ata_sff_pause                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DEVICE_OBS,4,2             ## @ATA_DEVICE_OBS
	.comm	_ATA_DEV1,4,2                   ## @ATA_DEV1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_sff_dev_select             ; -- Begin function ata_sff_dev_select
	.p2align	2
_ata_sff_dev_select:                    ; @ata_sff_dev_select
	.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
Lloh0:
	adrp	x8, _ATA_DEVICE_OBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_DEVICE_OBS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ATA_DEV1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATA_DEV1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w1, #0
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
	ldr	w1, [x19]
	bl	_iowrite8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata_sff_pause
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DEVICE_OBS,4,2             ; @ATA_DEVICE_OBS
	.comm	_ATA_DEV1,4,2                   ; @ATA_DEV1
.subsections_via_symbols
