	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __get_port_caps
___get_port_caps:                       ## @__get_port_caps
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%r15d, %r15d
	movq	$0, -56(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	leaq	8(%r12), %r13
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mlx5_ib_query_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_ib_warn
	jmp	LBB0_8
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_mlx5_ib_query_port
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx5_ib_warn
	jmp	LBB0_8
LBB0_7:
	movl	4(%r15), %ecx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rdx
	movl	%ecx, -4(%rax,%rdx,8)
	movl	(%r14), %r8d
	movl	%r8d, -8(%rax,%rdx,8)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_mlx5_ib_dbg
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query_device failed %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"query_port %d failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"port %d: pkey_table_len %d, gid_table_len %d\n"

	.no_dead_strip	___get_port_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __get_port_caps
___get_port_caps:                       ; @__get_port_caps
	.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, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	str	xzr, [sp, #8]
Lloh3:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #8
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x20]
	mov	w0, #8
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	add	x24, x23, #8
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x20
	bl	_mlx5_ib_query_device
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_mlx5_ib_warn
	b	LBB0_8
LBB0_4:
	mov	x20, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	bl	_mlx5_ib_query_port
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_mlx5_ib_warn
	b	LBB0_8
LBB0_7:
	ldr	w3, [x20, #4]
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x8, x8, w22, sxtw #3
	ldr	w4, [x19]
	stp	w4, w3, [x8, #-8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_mlx5_ib_dbg
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query_device failed %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"query_port %d failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"port %d: pkey_table_len %d, gid_table_len %d\n"

	.no_dead_strip	___get_port_caps
.subsections_via_symbols
