	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_send_port
_swconfig_send_port:                    ## @swconfig_send_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	callq	_nla_nest_start
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
LBB0_2:
	movl	8(%rbx), %edi
	movq	_SWITCH_ATTR_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nla_nest_start
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movl	8(%rbx), %edi
	movq	_SWITCH_PORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_nla_nest_cancel
LBB0_8:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	callq	_nla_nest_cancel
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %eax
	movq	_SWITCH_PORT_FLAG_TAGGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	btl	%esi, %eax
	jae	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_nla_nest_end
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SWITCH_ATTR_PORT,4,2           ## @SWITCH_ATTR_PORT
	.comm	_SWITCH_PORT_ID,4,2             ## @SWITCH_PORT_ID
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ## @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_swconfig_send_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_send_port
_swconfig_send_port:                    ; @swconfig_send_port
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldp	w0, w1, [x19, #8]
	bl	_nla_nest_start
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
LBB0_2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _SWITCH_ATTR_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWITCH_ATTR_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nla_nest_start
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _SWITCH_PORT_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWITCH_PORT_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_nla_put_u32
	cbz	x0, LBB0_8
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_nla_nest_cancel
LBB0_5:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_nla_nest_cancel
LBB0_6:
	mov	w0, #-1
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
LBB0_8:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _SWITCH_PORT_FLAG_TAGGED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SWITCH_PORT_FLAG_TAGGED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	lsr	w8, w8, w1
	tbz	w8, #0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_nla_put_flag
	cbnz	x0, LBB0_4
LBB0_10:
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_nla_nest_end
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SWITCH_ATTR_PORT,4,2           ; @SWITCH_ATTR_PORT
	.comm	_SWITCH_PORT_ID,4,2             ; @SWITCH_PORT_ID
	.comm	_SWITCH_PORT_FLAG_TAGGED,4,2    ; @SWITCH_PORT_FLAG_TAGGED
	.no_dead_strip	_swconfig_send_port
.subsections_via_symbols
