	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swlib_call
_swlib_call:                            ## @swlib_call
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_nlmsg_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	movq	_NLM_F_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_3:
	movq	_NL_AUTO_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_NL_AUTO_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_family@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_genl_family_get_id
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	pushq	$0
	pushq	%r12
	callq	_genlmsg_put
	addq	$16, %rsp
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_16
LBB0_5:
	movq	_NL_CB_CUSTOM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nl_cb_alloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	movq	%rax, %r15
	movq	_handle@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nl_send_auto_complete
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movl	$0, -52(%rbp)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_NL_CB_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_nl_cb_set
LBB0_9:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.10:
	movq	_NL_CB_FINISH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %r13d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_17
LBB0_12:
	movq	_NL_CB_ACK@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_wait_handler@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	callq	_nl_cb_set
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_nl_recvmsgs
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_17
## %bb.14:
	cmpl	$0, -52(%rbp)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_18
## %bb.15:
	movl	(%r14), %edi
	callq	_nl_wait_for_ack
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	%r15, %rdi
	callq	_nl_cb_put
	jmp	LBB0_19
LBB0_16:
	movl	%eax, %r13d
	movq	%r15, %rbx
LBB0_19:
	movq	%rbx, %rdi
	callq	_nlmsg_free
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_22
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_22:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory!\n"

	.comm	_NLM_F_DUMP,4,2                 ## @NLM_F_DUMP
	.comm	_NL_AUTO_PID,4,2                ## @NL_AUTO_PID
	.comm	_NL_AUTO_SEQ,4,2                ## @NL_AUTO_SEQ
	.comm	_family,4,2                     ## @family
	.comm	_NL_CB_CUSTOM,4,2               ## @NL_CB_CUSTOM
L_.str.1:                               ## @.str.1
	.asciz	"nl_cb_alloc failed.\n"

	.comm	_handle,4,2                     ## @handle
L_.str.2:                               ## @.str.2
	.asciz	"nl_send_auto_complete failed: %d\n"

	.comm	_NL_CB_VALID,4,2                ## @NL_CB_VALID
	.comm	_NL_CB_ACK,4,2                  ## @NL_CB_ACK
	.comm	_wait_handler,4,2               ## @wait_handler
	.comm	_NL_CB_FINISH,4,2               ## @NL_CB_FINISH
	.no_dead_strip	_swlib_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swlib_call
_swlib_call:                            ; @swlib_call
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	bl	_nlmsg_alloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _NLM_F_DUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NLM_F_DUMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x21, #0
	csel	w24, w8, wzr, eq
Lloh3:
	adrp	x8, _NL_AUTO_PID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL_AUTO_PID@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _NL_AUTO_SEQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL_AUTO_SEQ@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
Lloh9:
	adrp	x8, _family@GOTPAGE
Lloh10:
	ldr	x8, [x8, _family@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_genl_family_get_id
	mov	x3, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	mov	w4, #0
	mov	x5, x24
	mov	x6, x20
	mov	w7, #0
	bl	_genlmsg_put
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	blr	x21
	tbnz	w0, #31, LBB0_12
LBB0_3:
Lloh12:
	adrp	x26, _NL_CB_CUSTOM@GOTPAGE
Lloh13:
	ldr	x26, [x26, _NL_CB_CUSTOM@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_nl_cb_alloc
	cbz	x0, LBB0_15
; %bb.4:
	mov	x20, x0
Lloh14:
	adrp	x25, _handle@GOTPAGE
Lloh15:
	ldr	x25, [x25, _handle@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_nl_send_auto_complete
	tbnz	w0, #31, LBB0_10
; %bb.5:
	str	wzr, [sp, #12]
	cbz	x23, LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _NL_CB_VALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NL_CB_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x26]
	mov	x0, x20
	mov	x3, x23
	mov	x4, x22
	bl	_nl_cb_set
LBB0_7:
Lloh19:
	adrp	x8, _NL_CB_FINISH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NL_CB_FINISH@GOTPAGEOFF]
Lloh21:
	adrp	x9, _NL_CB_ACK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NL_CB_ACK@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	ldr	w2, [x26]
Lloh23:
	adrp	x8, _wait_handler@GOTPAGE
Lloh24:
	ldr	x8, [x8, _wait_handler@GOTPAGEOFF]
Lloh25:
	ldrsw	x3, [x8]
	add	x4, sp, #12
	mov	x0, x20
	bl	_nl_cb_set
	ldr	w0, [x25]
	mov	x1, x20
	bl	_nl_recvmsgs
	mov	x24, x0
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_11
; %bb.9:
	ldr	w0, [x25]
	bl	_nl_wait_for_ack
	mov	x24, x0
	b	LBB0_11
LBB0_10:
	mov	x24, x0
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_11:
	mov	x0, x20
	bl	_nl_cb_put
	b	LBB0_13
LBB0_12:
	mov	x24, x0
LBB0_13:
	mov	x0, x19
	bl	_nlmsg_free
	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
	add	sp, sp, #96
	ret
LBB0_14:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory!\n"

	.comm	_NLM_F_DUMP,4,2                 ; @NLM_F_DUMP
	.comm	_NL_AUTO_PID,4,2                ; @NL_AUTO_PID
	.comm	_NL_AUTO_SEQ,4,2                ; @NL_AUTO_SEQ
	.comm	_family,4,2                     ; @family
	.comm	_NL_CB_CUSTOM,4,2               ; @NL_CB_CUSTOM
l_.str.1:                               ; @.str.1
	.asciz	"nl_cb_alloc failed.\n"

	.comm	_handle,4,2                     ; @handle
l_.str.2:                               ; @.str.2
	.asciz	"nl_send_auto_complete failed: %d\n"

	.comm	_NL_CB_VALID,4,2                ; @NL_CB_VALID
	.comm	_NL_CB_ACK,4,2                  ; @NL_CB_ACK
	.comm	_wait_handler,4,2               ; @wait_handler
	.comm	_NL_CB_FINISH,4,2               ; @NL_CB_FINISH
	.no_dead_strip	_swlib_call
.subsections_via_symbols
