	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_modesel_get_bd_len
_nvme_trans_modesel_get_bd_len:         ## @nvme_trans_modesel_get_bd_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_MODE_SELECT_10_BD_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdi,%rax,4), %esi
	shll	$8, %esi
	addl	4(%rdi,%rax,4), %esi
	movl	%esi, (%rdx)
	movq	_MODE_SELECT_10_LLBAA_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rdi,%rax,4)
	setne	%al
	movq	_MODE_SELECT_10_LLBAA_MASK@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	setne	%dl
	andb	%al, %dl
	movzbl	%dl, %eax
	movl	%eax, (%rcx)
	popq	%rbp
	retq
LBB0_2:
	movq	_MODE_SELECT_6_BD_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdi,%rax,4), %eax
	movl	%eax, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_SELECT_10_BD_OFFSET,8,3   ## @MODE_SELECT_10_BD_OFFSET
	.comm	_MODE_SELECT_10_LLBAA_OFFSET,8,3 ## @MODE_SELECT_10_LLBAA_OFFSET
	.comm	_MODE_SELECT_10_LLBAA_MASK,8,3  ## @MODE_SELECT_10_LLBAA_MASK
	.comm	_MODE_SELECT_6_BD_OFFSET,8,3    ## @MODE_SELECT_6_BD_OFFSET
	.no_dead_strip	_nvme_trans_modesel_get_bd_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_modesel_get_bd_len
_nvme_trans_modesel_get_bd_len:         ; @nvme_trans_modesel_get_bd_len
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MODE_SELECT_10_BD_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_SELECT_10_BD_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x0, x8, lsl #2
	ldp	w9, w8, [x8]
	add	w8, w8, w9, lsl #8
	str	w8, [x2]
Lloh3:
	adrp	x8, _MODE_SELECT_10_LLBAA_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_SELECT_10_LLBAA_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x0, x8, lsl #2]
	cmp	w8, #0
Lloh6:
	adrp	x8, _MODE_SELECT_10_LLBAA_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_SELECT_10_LLBAA_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, ne
	cset	w8, ne
	str	w8, [x3]
	ret
LBB0_2:
Lloh9:
	adrp	x8, _MODE_SELECT_6_BD_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODE_SELECT_6_BD_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x0, x8, lsl #2]
	str	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_SELECT_10_BD_OFFSET,8,3   ; @MODE_SELECT_10_BD_OFFSET
	.comm	_MODE_SELECT_10_LLBAA_OFFSET,8,3 ; @MODE_SELECT_10_LLBAA_OFFSET
	.comm	_MODE_SELECT_10_LLBAA_MASK,8,3  ; @MODE_SELECT_10_LLBAA_MASK
	.comm	_MODE_SELECT_6_BD_OFFSET,8,3    ; @MODE_SELECT_6_BD_OFFSET
	.no_dead_strip	_nvme_trans_modesel_get_bd_len
.subsections_via_symbols
