	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_alloc_transport_domain
_mlx5_ib_alloc_transport_domain:        ## @mlx5_ib_alloc_transport_domain
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_log_max_transport_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mlx5_cmd_alloc_transport_domain
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	(%r14), %edi
	movq	_port_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movq	_MLX5_CAP_PORT_TYPE_ETH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movl	(%r14), %edi
	movq	_disable_local_lb_uc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movq	_disable_local_lb_mc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_enable_lb              ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_max_transport_domain,4,2   ## @log_max_transport_domain
	.comm	_port_type,4,2                  ## @port_type
	.comm	_MLX5_CAP_PORT_TYPE_ETH,8,3     ## @MLX5_CAP_PORT_TYPE_ETH
	.comm	_disable_local_lb_uc,4,2        ## @disable_local_lb_uc
	.comm	_disable_local_lb_mc,4,2        ## @disable_local_lb_mc
	.no_dead_strip	_mlx5_ib_alloc_transport_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_alloc_transport_domain
_mlx5_ib_alloc_transport_domain:        ; @mlx5_ib_alloc_transport_domain
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _log_max_transport_domain@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_max_transport_domain@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_mlx5_cmd_alloc_transport_domain
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _port_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _port_type@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
Lloh6:
	adrp	x8, _MLX5_CAP_PORT_TYPE_ETH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_CAP_PORT_TYPE_ETH@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _disable_local_lb_uc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _disable_local_lb_uc@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _disable_local_lb_mc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _disable_local_lb_mc@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mlx5_ib_enable_lb
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_log_max_transport_domain,4,2   ; @log_max_transport_domain
	.comm	_port_type,4,2                  ; @port_type
	.comm	_MLX5_CAP_PORT_TYPE_ETH,8,3     ; @MLX5_CAP_PORT_TYPE_ETH
	.comm	_disable_local_lb_uc,4,2        ; @disable_local_lb_uc
	.comm	_disable_local_lb_mc,4,2        ; @disable_local_lb_mc
	.no_dead_strip	_mlx5_ib_alloc_transport_domain
.subsections_via_symbols
