	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsidoinquiry                  ## -- Begin function scsidoinquiry
	.p2align	4, 0x90
_scsidoinquiry:                         ## @scsidoinquiry
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CAM_ARG_GET_STDINQ@GOTPCREL(%rip), %r13
	movq	_arglist@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAM_ARG_GET_SERIAL@GOTPCREL(%rip), %rcx
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %eax
	orl	%eax, (%r12)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$81, %eax
	jle	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$83, %eax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$82, %eax
	jne	LBB0_1
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAM_ARG_GET_XFERRATE@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rcx
	cmpl	$68, %eax
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.4:
	movl	(%r12), %eax
	movq	_CAM_ARG_INQ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.5:
	orl	%ecx, %eax
	movl	%eax, (%r12)
LBB0_6:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	_CAM_ARG_GET_STDINQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_scsiinquiry
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movl	(%r12), %eax
LBB0_9:
	movq	_CAM_ARG_GET_SERIAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_scsiserial
	movl	(%r12), %eax
LBB0_11:
	movq	_CAM_ARG_GET_XFERRATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.19:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_camxferrate                    ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAM_ARG_GET_STDINQ,4,2         ## @CAM_ARG_GET_STDINQ
	.comm	_arglist,4,2                    ## @arglist
	.comm	_CAM_ARG_GET_XFERRATE,4,2       ## @CAM_ARG_GET_XFERRATE
	.comm	_CAM_ARG_GET_SERIAL,4,2         ## @CAM_ARG_GET_SERIAL
	.comm	_CAM_ARG_INQ_MASK,4,2           ## @CAM_ARG_INQ_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsidoinquiry                  ; -- Begin function scsidoinquiry
	.p2align	2
_scsidoinquiry:                         ; @scsidoinquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x22, x5
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x20, _CAM_ARG_GET_STDINQ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CAM_ARG_GET_STDINQ@GOTPAGEOFF]
Lloh2:
	adrp	x27, _arglist@GOTPAGE
Lloh3:
	ldr	x27, [x27, _arglist@GOTPAGEOFF]
Lloh4:
	adrp	x28, _CAM_ARG_GET_SERIAL@GOTPAGE
Lloh5:
	ldr	x28, [x28, _CAM_ARG_GET_SERIAL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CAM_ARG_GET_XFERRATE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CAM_ARG_GET_XFERRATE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x28
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	_getopt
	cmp	w0, #81
	b.le	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #83
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #82
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x26
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x20
	cmp	w0, #68
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.9:
	ldr	w8, [x27]
Lloh8:
	adrp	x9, _CAM_ARG_INQ_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CAM_ARG_INQ_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
	orr	w8, w9, w8
	str	w8, [x27]
LBB0_11:
	ldr	w9, [x20]
	tst	w9, w8
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_scsiinquiry
	cbnz	w0, LBB0_19
; %bb.13:
	ldr	w8, [x27]
LBB0_14:
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_scsiserial
	ldr	w8, [x27]
LBB0_16:
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_camxferrate
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CAM_ARG_GET_STDINQ,4,2         ; @CAM_ARG_GET_STDINQ
	.comm	_arglist,4,2                    ; @arglist
	.comm	_CAM_ARG_GET_XFERRATE,4,2       ; @CAM_ARG_GET_XFERRATE
	.comm	_CAM_ARG_GET_SERIAL,4,2         ; @CAM_ARG_GET_SERIAL
	.comm	_CAM_ARG_INQ_MASK,4,2           ; @CAM_ARG_INQ_MASK
.subsections_via_symbols
