	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isns_do_check
_isns_do_check:                         ## @isns_do_check
	.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	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_ISNS_FUNC_DEVATTRQRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ISNS_FLAG_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_isns_req_create
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_TAILQ_FIRST
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_isns_req_add_str
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_isns_req_add_str
	movq	%rbx, %rdi
	callq	_isns_req_add_delim
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_isns_req_add
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_isns_req_send
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_isns_req_receive
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_isns_req_get_status
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_log_warnx
	movl	$-1, %r12d
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %r12d
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_log_warn
LBB0_7:
	movq	%rbx, %rdi
	callq	_isns_req_free
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISNS_FUNC_DEVATTRQRY,4,2       ## @ISNS_FUNC_DEVATTRQRY
	.comm	_ISNS_FLAG_CLIENT,4,2           ## @ISNS_FLAG_CLIENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send(2) failed for %s"

L_.str.1:                               ## @.str.1
	.asciz	"receive(2) failed for %s"

L_.str.2:                               ## @.str.2
	.asciz	"iSNS check error %d for %s"

	.no_dead_strip	_isns_do_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isns_do_check
_isns_do_check:                         ; @isns_do_check
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _ISNS_FUNC_DEVATTRQRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISNS_FUNC_DEVATTRQRY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ISNS_FLAG_CLIENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISNS_FLAG_CLIENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_isns_req_create
	mov	x19, x0
	mov	x0, x23
	bl	_TAILQ_FIRST
	ldr	x2, [x0]
	mov	x0, x19
	mov	w1, #32
	bl	_isns_req_add_str
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	bl	_isns_req_add_str
	mov	x0, x19
	bl	_isns_req_add_delim
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	mov	x3, #0
	bl	_isns_req_add
	mov	x0, x21
	mov	x1, x19
	bl	_isns_req_send
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_isns_req_receive
	mov	x22, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_isns_req_get_status
	cbz	x0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	w2, [x20]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_warnx
	mov	w22, #-1
	b	LBB0_7
LBB0_4:
	mov	x22, x0
	ldr	w1, [x20]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w1, [x20]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_log_warn
LBB0_7:
	mov	x0, x19
	bl	_isns_req_free
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ISNS_FUNC_DEVATTRQRY,4,2       ; @ISNS_FUNC_DEVATTRQRY
	.comm	_ISNS_FLAG_CLIENT,4,2           ; @ISNS_FLAG_CLIENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send(2) failed for %s"

l_.str.1:                               ; @.str.1
	.asciz	"receive(2) failed for %s"

l_.str.2:                               ; @.str.2
	.asciz	"iSNS check error %d for %s"

	.no_dead_strip	_isns_do_check
.subsections_via_symbols
