	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_SCSI_PutSEL                ## -- Begin function PBI_SCSI_PutSEL
	.p2align	4, 0x90
_PBI_SCSI_PutSEL:                       ## @PBI_SCSI_PutSEL
	.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	_PBI_SCSI_SEL@GOTPCREL(%rip), %rbx
	cmpl	%edi, (%rbx)
	jne	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %esi
	movl	%edi, (%rbx)
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	movq	_scsi_phase@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SCSI_PHASE_SELECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_scsi_byte@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_SCSI_PHASE_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_scsi_changephase
	movl	(%rbx), %esi
	jmp	LBB0_6
LBB0_2:
	xorl	%esi, %esi
LBB0_6:
	movq	_scsi_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_D                              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PBI_SCSI_SEL,4,2               ## @PBI_SCSI_SEL
	.comm	_scsi_phase,8,3                 ## @scsi_phase
	.comm	_SCSI_PHASE_SELECTION,8,3       ## @SCSI_PHASE_SELECTION
	.comm	_scsi_byte,4,2                  ## @scsi_byte
	.comm	_SCSI_PHASE_COMMAND,4,2         ## @SCSI_PHASE_COMMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changed SEL:%d  scsi_byte:%2x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PBI_SCSI_PutSEL                ; -- Begin function PBI_SCSI_PutSEL
	.p2align	2
_PBI_SCSI_PutSEL:                       ; @PBI_SCSI_PutSEL
	.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
Lloh0:
	adrp	x20, _PBI_SCSI_SEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PBI_SCSI_SEL@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x1, x0
	str	w0, [x20]
Lloh2:
	adrp	x19, _scsi_byte@GOTPAGE
Lloh3:
	ldr	x19, [x19, _scsi_byte@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.3:
Lloh4:
	adrp	x8, _scsi_phase@GOTPAGE
Lloh5:
	ldr	x8, [x8, _scsi_phase@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _SCSI_PHASE_SELECTION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SCSI_PHASE_SELECTION@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w10, [x19]
	cmp	x8, x9
	ccmp	w10, #1, #0, eq
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _SCSI_PHASE_COMMAND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCSI_PHASE_COMMAND@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_scsi_changephase
	ldr	w1, [x20]
LBB0_5:
	ldr	w2, [x19]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_D
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PBI_SCSI_SEL,4,2               ; @PBI_SCSI_SEL
	.comm	_scsi_phase,8,3                 ; @scsi_phase
	.comm	_SCSI_PHASE_SELECTION,8,3       ; @SCSI_PHASE_SELECTION
	.comm	_scsi_byte,4,2                  ; @scsi_byte
	.comm	_SCSI_PHASE_COMMAND,4,2         ; @SCSI_PHASE_COMMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changed SEL:%d  scsi_byte:%2x\n"

.subsections_via_symbols
