	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_cache_update
_ib_cache_update:                       ## @ib_cache_update
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_rdma_is_port_valid
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ib_query_port
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	addq	$16, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_15:
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_rdma_protocol_roce
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_table@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_struct_size
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r13
	movl	(%r14), %eax
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	addq	%rbx, %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_ib_query_pkey
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_13:
	movq	%r12, %rdi
	callq	_write_lock_irq
	movq	8(%r12), %rax
	leaq	(%r15,%r15,2), %rcx
	movq	16(%rax,%rcx,8), %rbx
	movq	%r13, 16(%rax,%rcx,8)
	movl	16(%r14), %edx
	movl	%edx, 8(%rax,%rcx,8)
	movl	12(%r14), %edx
	movl	%edx, 4(%rax,%rcx,8)
	movl	8(%r14), %edx
	movl	%edx, (%rax,%rcx,8)
	movq	%r12, %rdi
	callq	_write_unlock_irq
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	movl	8(%r14), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ib_security_cache_change
	jmp	LBB0_15
LBB0_5:
	movl	32(%r14), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_config_non_roce_gid_cache
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_11:
	addq	$16, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	%r13, %rbx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ib_query_port failed (%d)\n"

	.comm	_table,4,2                      ## @table
L_.str.1:                               ## @.str.1
	.asciz	"ib_query_pkey failed (%d) for index %d\n"

	.no_dead_strip	_ib_cache_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_cache_update
_ib_cache_update:                       ; @ib_cache_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_rdma_is_port_valid
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ib_query_port
	cbz	w0, LBB0_7
; %bb.3:
	mov	x2, x0
	add	x0, x20, #16
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
	mov	x23, #0
LBB0_5:
	mov	x0, x23
	bl	_kfree
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_kfree
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_rdma_protocol_roce
	cbz	w0, LBB0_16
LBB0_8:
Lloh4:
	adrp	x8, _table@GOTPAGE
Lloh5:
	ldr	x8, [x8, _table@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, #0
	bl	_struct_size
	ldr	w1, [x23]
	bl	_kmalloc
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.9:
	ldr	w8, [x19]
	str	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x24, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #24]
	add	x3, x24, x8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_ib_query_pkey
	cbnz	w0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23, #4]
	cmp	x24, x8
	b.lt	LBB0_11
LBB0_13:
	mov	x0, x20
	bl	_write_lock_irq
	ldr	x8, [x20, #8]
	mov	w9, #24
	madd	x8, x21, x9, x8
	ldr	x24, [x8, #16]
	str	x23, [x8, #16]
	ldr	w9, [x19, #16]
	str	w9, [x8, #8]
	ldr	d0, [x19, #8]
	str	d0, [x8]
	mov	x0, x20
	bl	_write_unlock_irq
	cbz	w22, LBB0_15
; %bb.14:
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_ib_security_cache_change
LBB0_15:
	mov	x23, x24
	b	LBB0_5
LBB0_16:
	ldr	w2, [x19, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_config_non_roce_gid_cache
	cbnz	w0, LBB0_4
	b	LBB0_8
LBB0_17:
	mov	x2, x0
	add	x0, x20, #16
	str	x24, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ib_query_port failed (%d)\n"

	.comm	_table,4,2                      ; @table
l_.str.1:                               ; @.str.1
	.asciz	"ib_query_pkey failed (%d) for index %d\n"

	.no_dead_strip	_ib_cache_update
.subsections_via_symbols
