	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_umad_init_port
_ib_umad_init_port:                     ## @ib_umad_init_port
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_IB_UMAD_MAX_PORTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_umad_ida@GOTPCREL(%rip), %rdi
	callq	_ida_alloc_max
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdx
	movl	%eax, (%rbx)
	movq	_IB_UMAD_NUM_FIXED_MINOR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	cmpl	%esi, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	jge	LBB0_3
## %bb.4:
	movq	_base_umad_dev@GOTPCREL(%rip), %rcx
	movl	%eax, %r13d
	movq	(%rcx), %r15
	addq	%r13, %r15
	movq	_base_issm_dev@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_10
LBB0_3:
	movq	_dynamic_umad_dev@GOTPCREL(%rip), %rcx
	movl	%eax, %r13d
	movq	(%rcx), %r15
	addq	%r13, %r15
	subq	%rsi, %r15
	movq	_dynamic_issm_dev@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r13
	subq	%rsi, %r13
LBB0_5:
	movq	%rdx, %r14
	movq	%rdx, 64(%rbx)
	movq	%rdi, 56(%rbx)
	movl	%r12d, 4(%rbx)
	leaq	48(%rbx), %rdi
	movl	$1, %esi
	callq	_sema_init
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_ib_umad_init_port_dev
	movq	%r15, 8(%rbx)
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_set_name
	leaq	16(%rbx), %r14
	movq	_umad_fops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cdev_device_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_ib_umad_init_port_dev
	movq	%r13, 24(%rbx)
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r15, %r13
	callq	_dev_set_name
	leaq	32(%rbx), %r15
	movq	_umad_sm_fops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%r13, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_cdev_device_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_put_device
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cdev_device_del
LBB0_9:
	movq	%r12, %rdi
	callq	_put_device
	movq	_umad_ida@GOTPCREL(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ida_free
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_umad_ida,4,2                   ## @umad_ida
	.comm	_IB_UMAD_MAX_PORTS,8,3          ## @IB_UMAD_MAX_PORTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_UMAD_NUM_FIXED_MINOR,4,2    ## @IB_UMAD_NUM_FIXED_MINOR
	.comm	_dynamic_umad_dev,8,3           ## @dynamic_umad_dev
	.comm	_dynamic_issm_dev,8,3           ## @dynamic_issm_dev
	.comm	_base_umad_dev,8,3              ## @base_umad_dev
	.comm	_base_issm_dev,8,3              ## @base_issm_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"umad%d"

	.comm	_umad_fops,4,2                  ## @umad_fops
	.comm	_THIS_MODULE,8,3                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"issm%d"

	.comm	_umad_sm_fops,4,2               ## @umad_sm_fops
	.no_dead_strip	_ib_umad_init_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_umad_init_port
_ib_umad_init_port:                     ; @ib_umad_init_port
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IB_UMAD_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_UMAD_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x0, _umad_ida@GOTPAGE
Lloh7:
	ldr	x0, [x0, _umad_ida@GOTPAGEOFF]
	bl	_ida_alloc_max
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	str	w0, [x20]
Lloh8:
	adrp	x8, _IB_UMAD_NUM_FIXED_MINOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_UMAD_NUM_FIXED_MINOR@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _base_umad_dev@GOTPAGE
Lloh12:
	ldr	x8, [x8, _base_umad_dev@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	w9, w19
	add	x24, x8, x9
Lloh14:
	adrp	x8, _base_issm_dev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _base_issm_dev@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x26, x8, x9
	b	LBB0_5
LBB0_3:
	mov	w24, #-1
	b	LBB0_9
LBB0_4:
Lloh17:
	adrp	x9, _dynamic_umad_dev@GOTPAGE
Lloh18:
	ldr	x9, [x9, _dynamic_umad_dev@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	mov	w10, w19
	add	x9, x9, x10
	sub	x24, x9, x8
Lloh20:
	adrp	x9, _dynamic_issm_dev@GOTPAGE
Lloh21:
	ldr	x9, [x9, _dynamic_issm_dev@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x9, x9, x10
	sub	x26, x9, x8
LBB0_5:
	stp	x23, x21, [x20, #56]
	add	x0, x20, #48
	str	w22, [x20, #4]
	mov	w1, #1
	bl	_sema_init
	add	x0, x20, #44
	bl	_mutex_init
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	add	x22, x20, #8
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_ib_umad_init_port_dev
	str	x24, [x20, #8]
	ldr	w2, [x20]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_set_name
	add	x23, x20, #16
Lloh25:
	adrp	x1, _umad_fops@GOTPAGE
Lloh26:
	ldr	x1, [x1, _umad_fops@GOTPAGEOFF]
	mov	x0, x23
	bl	_cdev_init
Lloh27:
	adrp	x27, _THIS_MODULE@GOTPAGE
Lloh28:
	ldr	x27, [x27, _THIS_MODULE@GOTPAGEOFF]
	ldr	x8, [x27]
	str	x8, [x20, #16]
	mov	x0, x23
	mov	x1, x22
	bl	_cdev_device_add
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.6:
	add	x25, x20, #24
	mov	x0, x25
	mov	x1, x20
	mov	x2, x21
	bl	_ib_umad_init_port_dev
	str	x26, [x20, #24]
	ldr	w2, [x20]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	bl	_dev_set_name
	add	x21, x20, #32
Lloh31:
	adrp	x1, _umad_sm_fops@GOTPAGE
Lloh32:
	ldr	x1, [x1, _umad_sm_fops@GOTPAGEOFF]
	mov	x0, x21
	bl	_cdev_init
	ldr	x8, [x27]
	str	x8, [x20, #32]
	mov	x0, x21
	mov	x1, x25
	bl	_cdev_device_add
	mov	x24, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x25
	bl	_put_device
	mov	x0, x23
	mov	x1, x22
	bl	_cdev_device_del
LBB0_8:
	mov	x0, x22
	bl	_put_device
Lloh33:
	adrp	x0, _umad_ida@GOTPAGE
Lloh34:
	ldr	x0, [x0, _umad_ida@GOTPAGEOFF]
	mov	x1, x19
	bl	_ida_free
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_umad_ida,4,2                   ; @umad_ida
	.comm	_IB_UMAD_MAX_PORTS,8,3          ; @IB_UMAD_MAX_PORTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_UMAD_NUM_FIXED_MINOR,4,2    ; @IB_UMAD_NUM_FIXED_MINOR
	.comm	_dynamic_umad_dev,8,3           ; @dynamic_umad_dev
	.comm	_dynamic_issm_dev,8,3           ; @dynamic_issm_dev
	.comm	_base_umad_dev,8,3              ; @base_umad_dev
	.comm	_base_issm_dev,8,3              ; @base_issm_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"umad%d"

	.comm	_umad_fops,4,2                  ; @umad_fops
	.comm	_THIS_MODULE,8,3                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"issm%d"

	.comm	_umad_sm_fops,4,2               ; @umad_sm_fops
	.no_dead_strip	_ib_umad_init_port
.subsections_via_symbols
