	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_init                     ## -- Begin function ib_sa_init
	.p2align	4, 0x90
_ib_sa_init:                            ## @ib_sa_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_tid@GOTPCREL(%rip), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movq	_ib_nl_sa_request_seq@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_sa_client@GOTPCREL(%rip), %rdi
	callq	_ib_register_client
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_mcast_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_6:
	movq	_sa_client@GOTPCREL(%rip), %rdi
	callq	_ib_unregister_client
	jmp	LBB0_7
LBB0_4:
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_alloc_ordered_workqueue
	movq	_ib_nl_wq@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	_ib_nl_request_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ib_nl_timed_work@GOTPCREL(%rip), %rdi
	callq	_INIT_DELAYED_WORK
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_mcast_cleanup
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_tid,4,2                        ## @tid
	.comm	_ib_nl_sa_request_seq,4,2       ## @ib_nl_sa_request_seq
	.comm	_sa_client,4,2                  ## @sa_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't register ib_sa client\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't initialize multicast handling\n"

L_.str.2:                               ## @.str.2
	.asciz	"ib_nl_sa_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_ib_nl_wq,4,2                   ## @ib_nl_wq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ib_nl_timed_work,4,2           ## @ib_nl_timed_work
	.comm	_ib_nl_request_timeout,4,2      ## @ib_nl_request_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_init                     ; -- Begin function ib_sa_init
	.p2align	2
_ib_sa_init:                            ; @ib_sa_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _tid@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tid@GOTPAGEOFF]
	mov	w1, #4
	bl	_get_random_bytes
Lloh2:
	adrp	x0, _ib_nl_sa_request_seq@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ib_nl_sa_request_seq@GOTPAGEOFF]
	mov	w1, #0
	bl	_atomic_set
Lloh4:
	adrp	x0, _sa_client@GOTPAGE
Lloh5:
	ldr	x0, [x0, _sa_client@GOTPAGEOFF]
	bl	_ib_register_client
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_2:
	bl	_mcast_init
	cbz	w0, LBB0_5
; %bb.3:
	mov	x19, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_4:
Lloh10:
	adrp	x0, _sa_client@GOTPAGE
Lloh11:
	ldr	x0, [x0, _sa_client@GOTPAGEOFF]
	bl	_ib_unregister_client
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_alloc_ordered_workqueue
Lloh17:
	adrp	x8, _ib_nl_wq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ib_nl_wq@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	cbz	w0, LBB0_8
; %bb.6:
Lloh20:
	adrp	x8, _ib_nl_request_timeout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ib_nl_request_timeout@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x0, _ib_nl_timed_work@GOTPAGE
Lloh24:
	ldr	x0, [x0, _ib_nl_timed_work@GOTPAGEOFF]
	bl	_INIT_DELAYED_WORK
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_mcast_cleanup
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_tid,4,2                        ; @tid
	.comm	_ib_nl_sa_request_seq,4,2       ; @ib_nl_sa_request_seq
	.comm	_sa_client,4,2                  ; @sa_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't register ib_sa client\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't initialize multicast handling\n"

l_.str.2:                               ; @.str.2
	.asciz	"ib_nl_sa_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_ib_nl_wq,4,2                   ; @ib_nl_wq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ib_nl_timed_work,4,2           ; @ib_nl_timed_work
	.comm	_ib_nl_request_timeout,4,2      ; @ib_nl_request_timeout
.subsections_via_symbols
