	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbp2_scsi_slave_configure
_sbp2_scsi_slave_configure:             ## @sbp2_scsi_slave_configure
	.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	40(%rdi), %rax
	movl	$1, (%rdi)
	movq	_sbp2_param_exclusive_login@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	$1, 4(%rbx)
LBB0_2:
	movq	8(%rbx), %rcx
	movq	_TYPE_ROM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	$1, 16(%rbx)
LBB0_4:
	movq	_TYPE_DISK@GOTPCREL(%rip), %rdx
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movq	_SBP2_WORKAROUND_MODE_SENSE_8@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$1, 20(%rbx)
LBB0_7:
	movq	_SBP2_WORKAROUND_FIX_CAPACITY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	$1, 24(%rbx)
LBB0_9:
	movq	_SBP2_WORKAROUND_POWER_CONDITION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	$1, 28(%rbx)
LBB0_11:
	movq	_SBP2_WORKAROUND_128K_MAX_TRANS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	32(%rbx), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_blk_queue_max_hw_sectors
LBB0_13:
	movl	32(%rbx), %edi
	movq	_SBP2_MAX_SEG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_blk_queue_max_segment_size
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbp2_param_exclusive_login,8,3 ## @sbp2_param_exclusive_login
	.comm	_TYPE_ROM,8,3                   ## @TYPE_ROM
	.comm	_TYPE_DISK,8,3                  ## @TYPE_DISK
	.comm	_SBP2_WORKAROUND_MODE_SENSE_8,4,2 ## @SBP2_WORKAROUND_MODE_SENSE_8
	.comm	_SBP2_WORKAROUND_FIX_CAPACITY,4,2 ## @SBP2_WORKAROUND_FIX_CAPACITY
	.comm	_SBP2_WORKAROUND_POWER_CONDITION,4,2 ## @SBP2_WORKAROUND_POWER_CONDITION
	.comm	_SBP2_WORKAROUND_128K_MAX_TRANS,4,2 ## @SBP2_WORKAROUND_128K_MAX_TRANS
	.comm	_SBP2_MAX_SEG_SIZE,4,2          ## @SBP2_MAX_SEG_SIZE
	.no_dead_strip	_sbp2_scsi_slave_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbp2_scsi_slave_configure
_sbp2_scsi_slave_configure:             ; @sbp2_scsi_slave_configure
	.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, #40]
	mov	w9, #1
	str	w9, [x0]
Lloh0:
	adrp	x10, _sbp2_param_exclusive_login@GOTPAGE
Lloh1:
	ldr	x10, [x10, _sbp2_param_exclusive_login@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cbz	x10, LBB0_2
; %bb.1:
	str	w9, [x19, #4]
LBB0_2:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _TYPE_ROM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TYPE_ROM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #1
	str	w10, [x19, #16]
LBB0_4:
Lloh6:
	adrp	x10, _TYPE_DISK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TYPE_DISK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
Lloh9:
	adrp	x9, _SBP2_WORKAROUND_MODE_SENSE_8@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SBP2_WORKAROUND_MODE_SENSE_8@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [x19, #20]
LBB0_7:
Lloh12:
	adrp	x9, _SBP2_WORKAROUND_FIX_CAPACITY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SBP2_WORKAROUND_FIX_CAPACITY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w9, #1
	str	w9, [x19, #24]
LBB0_9:
Lloh15:
	adrp	x9, _SBP2_WORKAROUND_POWER_CONDITION@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SBP2_WORKAROUND_POWER_CONDITION@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w9, #1
	str	w9, [x19, #28]
LBB0_11:
Lloh18:
	adrp	x9, _SBP2_WORKAROUND_128K_MAX_TRANS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SBP2_WORKAROUND_128K_MAX_TRANS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19, #32]
	mov	w1, #256
	bl	_blk_queue_max_hw_sectors
LBB0_13:
	ldr	w0, [x19, #32]
Lloh21:
	adrp	x8, _SBP2_MAX_SEG_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SBP2_MAX_SEG_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_blk_queue_max_segment_size
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_sbp2_param_exclusive_login,8,3 ; @sbp2_param_exclusive_login
	.comm	_TYPE_ROM,8,3                   ; @TYPE_ROM
	.comm	_TYPE_DISK,8,3                  ; @TYPE_DISK
	.comm	_SBP2_WORKAROUND_MODE_SENSE_8,4,2 ; @SBP2_WORKAROUND_MODE_SENSE_8
	.comm	_SBP2_WORKAROUND_FIX_CAPACITY,4,2 ; @SBP2_WORKAROUND_FIX_CAPACITY
	.comm	_SBP2_WORKAROUND_POWER_CONDITION,4,2 ; @SBP2_WORKAROUND_POWER_CONDITION
	.comm	_SBP2_WORKAROUND_128K_MAX_TRANS,4,2 ; @SBP2_WORKAROUND_128K_MAX_TRANS
	.comm	_SBP2_MAX_SEG_SIZE,4,2          ; @SBP2_MAX_SEG_SIZE
	.no_dead_strip	_sbp2_scsi_slave_configure
.subsections_via_symbols
