	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ub_state_sense
_ub_state_sense:                        ## @ub_state_sense
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	_REQUEST_SENSE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ub_state_done                  ## TAILCALL
LBB0_2:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_UB_SENSE_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 32(%rcx)
	movl	$6, 24(%rbx)
	movq	_UB_DIR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_UB_CMDST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 28(%rbx)
	movq	72(%rbx), %r12
	movq	_UB_MAX_REQ_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sg_init_table
	movq	8(%rbx), %rdi
	callq	_virt_to_page
	movq	(%r13), %rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	8(%rbx), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sg_set_page
	movq	(%r13), %rax
	movq	%rax, 64(%rbx)
	movl	44(%r14), %eax
	movl	%eax, 60(%rbx)
	movq	_ub_top_sense_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	%r14, 48(%rbx)
	movslq	(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%rax, 40(%rbx)
	movq	_UB_CMDST_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ub_cmdq_insert                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REQUEST_SENSE,8,3              ## @REQUEST_SENSE
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_UB_SENSE_SIZE,8,3              ## @UB_SENSE_SIZE
	.comm	_UB_DIR_READ,4,2                ## @UB_DIR_READ
	.comm	_UB_CMDST_INIT,4,2              ## @UB_CMDST_INIT
	.comm	_UB_MAX_REQ_SG,4,2              ## @UB_MAX_REQ_SG
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ub_top_sense_done,4,2          ## @ub_top_sense_done
	.comm	_UB_CMDST_SENSE,4,2             ## @UB_CMDST_SENSE
	.no_dead_strip	_ub_state_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ub_state_sense
lCPI0_0:
	.long	6                               ; 0x6
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ub_state_sense:                        ; @ub_state_sense
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _REQUEST_SENSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REQUEST_SENSE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EPIPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w2, w8
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ub_state_done
LBB0_2:
	add	x21, x20, #16
	mov	x0, x21
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	x8, [x22]
	ldr	x9, [x20, #16]
Lloh5:
	adrp	x23, _UB_SENSE_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _UB_SENSE_SIZE@GOTPAGEOFF]
	str	x8, [x9]
	ldr	x8, [x23]
	str	x8, [x9, #32]
Lloh7:
	adrp	x8, _UB_DIR_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UB_DIR_READ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #80]
Lloh10:
	adrp	x8, _UB_CMDST_INIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UB_CMDST_INIT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #24]
	ldr	x22, [x20, #72]
Lloh15:
	adrp	x8, _UB_MAX_REQ_SG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UB_MAX_REQ_SG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sg_init_table
	ldr	x0, [x20, #8]
	bl	_virt_to_page
	mov	x1, x0
	ldr	x2, [x23]
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x3, x8, x9
	mov	x0, x22
	bl	_sg_set_page
	ldr	x8, [x23]
	str	x8, [x20, #64]
	ldr	w8, [x19, #44]
Lloh21:
	adrp	x9, _ub_top_sense_done@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ub_top_sense_done@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #56]
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	stp	x8, x19, [x20, #40]
Lloh24:
	adrp	x8, _UB_CMDST_SENSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UB_CMDST_SENSE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ub_cmdq_insert
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REQUEST_SENSE,8,3              ; @REQUEST_SENSE
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_UB_SENSE_SIZE,8,3              ; @UB_SENSE_SIZE
	.comm	_UB_DIR_READ,4,2                ; @UB_DIR_READ
	.comm	_UB_CMDST_INIT,4,2              ; @UB_CMDST_INIT
	.comm	_UB_MAX_REQ_SG,4,2              ; @UB_MAX_REQ_SG
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ub_top_sense_done,4,2          ; @ub_top_sense_done
	.comm	_UB_CMDST_SENSE,4,2             ; @UB_CMDST_SENSE
	.no_dead_strip	_ub_state_sense
.subsections_via_symbols
