	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_addr_handler
_iser_addr_handler:                     ## @iser_addr_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_ISER_CONN_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	callq	_iser_device_find_by_ib_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, 16(%rbx)
	movq	_iser_pi_enable@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.4:
	movq	(%rax), %rdi
	movq	_IB_DEVICE_INTEGRITY_HANDOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, 4(%rdi)
	jne	LBB0_6
## %bb.5:
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_warn
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, 8(%rbx)
LBB0_7:
	movq	_iser_max_sectors@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iser_calc_scsi_params
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_rdma_resolve_route
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_iser_err
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_iser_err
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iser_connect_error             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISER_CONN_PENDING,8,3          ## @ISER_CONN_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device lookup/creation failed\n"

	.comm	_iser_pi_enable,8,3             ## @iser_pi_enable
	.comm	_IB_DEVICE_INTEGRITY_HANDOVER,4,2 ## @IB_DEVICE_INTEGRITY_HANDOVER
L_.str.1:                               ## @.str.1
	.asciz	"T10-PI requested but not supported on %s, continue without T10-PI\n"

	.comm	_iser_max_sectors,4,2           ## @iser_max_sectors
L_.str.2:                               ## @.str.2
	.asciz	"resolve route failed: %d\n"

	.no_dead_strip	_iser_addr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_addr_handler
_iser_addr_handler:                     ; @iser_addr_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ISER_CONN_PENDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISER_CONN_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x0
	bl	_iser_device_find_by_ib_device
	cbz	x0, LBB0_5
; %bb.2:
	str	x0, [x20, #16]
Lloh3:
	adrp	x8, _iser_pi_enable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iser_pi_enable@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x0, [x0]
	ldr	w8, [x0, #4]
Lloh6:
	adrp	x9, _IB_DEVICE_INTEGRITY_HANDOVER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_DEVICE_INTEGRITY_HANDOVER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	w8, #1
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:
	bl	_dev_name
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_warn
	mov	w8, #0
LBB0_7:
	str	w8, [x20, #8]
LBB0_8:
Lloh13:
	adrp	x8, _iser_max_sectors@GOTPAGE
Lloh14:
	ldr	x8, [x8, _iser_max_sectors@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iser_calc_scsi_params
	mov	x0, x19
	mov	w1, #1000
	bl	_rdma_resolve_route
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_11
; %bb.9:
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_iser_err
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_iser_connect_error
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ISER_CONN_PENDING,8,3          ; @ISER_CONN_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device lookup/creation failed\n"

	.comm	_iser_pi_enable,8,3             ; @iser_pi_enable
	.comm	_IB_DEVICE_INTEGRITY_HANDOVER,4,2 ; @IB_DEVICE_INTEGRITY_HANDOVER
l_.str.1:                               ; @.str.1
	.asciz	"T10-PI requested but not supported on %s, continue without T10-PI\n"

	.comm	_iser_max_sectors,4,2           ; @iser_max_sectors
l_.str.2:                               ; @.str.2
	.asciz	"resolve route failed: %d\n"

	.no_dead_strip	_iser_addr_handler
.subsections_via_symbols
