	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_intf_alloc               ## -- Begin function ipoib_intf_alloc
	.p2align	4, 0x90
_ipoib_intf_alloc:                      ## @ipoib_intf_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_ipoib_priv_alloc
	movq	%rax, %r14
	movq	_IFT_INFINIBAND@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_if_alloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	_ipoib_unrhdr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_unr
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_if_initname
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_INFINIBAND_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_IPOIB_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	%rbx, %rdi
	callq	_if_attach
	movq	_ipoib_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_ipoib_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_ipoib_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_ipoib_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_ipoib_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_ipoib_resolvemulti@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	$10, %edi
	callq	_IF_Gbps
	movl	%eax, 40(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 36(%rbx)
	movq	_ipoib_sendq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movl	%eax, 32(%rbx)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	(%r12), %ecx
	movl	%ecx, 4(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, (%rax)
	movq	%rbx, 8(%r14)
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_if_link_state_change
	movq	_DLT_EN10MB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETHER_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bpfattach
	movq	8(%rbx), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_if_free
LBB0_1:
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFT_INFINIBAND,4,2             ## @IFT_INFINIBAND
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_ipoib_unrhdr,4,2               ## @ipoib_unrhdr
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_INFINIBAND_ALEN,4,2            ## @INFINIBAND_ALEN
	.comm	_IPOIB_HEADER_LEN,4,2           ## @IPOIB_HEADER_LEN
	.comm	_ipoib_init,4,2                 ## @ipoib_init
	.comm	_ipoib_ioctl,4,2                ## @ipoib_ioctl
	.comm	_ipoib_start,4,2                ## @ipoib_start
	.comm	_ipoib_output,4,2               ## @ipoib_output
	.comm	_ipoib_input,4,2                ## @ipoib_input
	.comm	_ipoib_resolvemulti,4,2         ## @ipoib_resolvemulti
	.comm	_ipoib_sendq_size,4,2           ## @ipoib_sendq_size
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.comm	_DLT_EN10MB,4,2                 ## @DLT_EN10MB
	.comm	_ETHER_HDR_LEN,4,2              ## @ETHER_HDR_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_intf_alloc               ; -- Begin function ipoib_intf_alloc
	.p2align	2
_ipoib_intf_alloc:                      ; @ipoib_intf_alloc
	.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	x21, x0
	bl	_ipoib_priv_alloc
	mov	x19, x0
Lloh0:
	adrp	x22, _IFT_INFINIBAND@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IFT_INFINIBAND@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_if_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #8]
Lloh2:
	adrp	x8, _ipoib_unrhdr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ipoib_unrhdr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_alloc_unr
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_if_initname
Lloh5:
	adrp	x8, _IFF_BROADCAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_BROADCAST@GOTPAGEOFF]
Lloh7:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh11:
	adrp	x8, _INFINIBAND_ALEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INFINIBAND_ALEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh14:
	adrp	x8, _IPOIB_HEADER_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPOIB_HEADER_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #68]
	mov	x0, x20
	bl	_if_attach
Lloh17:
	adrp	x8, _ipoib_init@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ipoib_init@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ipoib_ioctl@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ipoib_ioctl@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #60]
Lloh23:
	adrp	x8, _ipoib_start@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ipoib_start@GOTPAGEOFF]
Lloh25:
	adrp	x9, _ipoib_output@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ipoib_output@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #52]
Lloh29:
	adrp	x8, _ipoib_input@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ipoib_input@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _ipoib_resolvemulti@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ipoib_resolvemulti@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
	mov	w0, #10
	bl	_IF_Gbps
	str	w0, [x20, #40]
	ldr	w8, [x19, #16]
Lloh35:
	adrp	x9, _ipoib_sendq_size@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ipoib_sendq_size@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	lsl	w9, w9, #1
	stp	w9, w8, [x20, #32]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	w9, [x22]
	ldr	w10, [x20, #16]
	stp	w10, w9, [x8]
	str	x20, [x19, #8]
Lloh38:
	adrp	x8, _LINK_STATE_DOWN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LINK_STATE_DOWN@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_if_link_state_change
Lloh41:
	adrp	x8, _DLT_EN10MB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DLT_EN10MB@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _ETHER_HDR_LEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETHER_HDR_LEN@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bpfattach
	ldr	x0, [x20, #8]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_if_free
LBB0_4:
Lloh47:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
	mov	x0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_IFT_INFINIBAND,4,2             ; @IFT_INFINIBAND
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_ipoib_unrhdr,4,2               ; @ipoib_unrhdr
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_INFINIBAND_ALEN,4,2            ; @INFINIBAND_ALEN
	.comm	_IPOIB_HEADER_LEN,4,2           ; @IPOIB_HEADER_LEN
	.comm	_ipoib_init,4,2                 ; @ipoib_init
	.comm	_ipoib_ioctl,4,2                ; @ipoib_ioctl
	.comm	_ipoib_start,4,2                ; @ipoib_start
	.comm	_ipoib_output,4,2               ; @ipoib_output
	.comm	_ipoib_input,4,2                ; @ipoib_input
	.comm	_ipoib_resolvemulti,4,2         ; @ipoib_resolvemulti
	.comm	_ipoib_sendq_size,4,2           ; @ipoib_sendq_size
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.comm	_DLT_EN10MB,4,2                 ; @DLT_EN10MB
	.comm	_ETHER_HDR_LEN,4,2              ; @ETHER_HDR_LEN
.subsections_via_symbols
