	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_send_ports
_swconfig_send_ports:                   ## @swconfig_send_ports
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rcx)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	%ebx, -96(%rbp)
	movq	(%r14), %rdi
	movq	%rdi, -88(%rbp)
	movq	%r12, -56(%rbp)
	movq	_swconfig_send_port@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_swconfig_close_portlist@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	%ebx, %esi
	callq	_nla_nest_start
	movq	-80(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_swconfig_send_multipart
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%r15), %rbx
	addq	$4, %r13
	cmpq	%rbx, %r14
	jl	LBB0_4
## %bb.6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	callq	_swconfig_close_portlist
	movq	-88(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_9:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_swconfig_send_port,4,2         ## @swconfig_send_port
	.no_dead_strip	_swconfig_send_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_send_ports
_swconfig_send_ports:                   ; @swconfig_send_ports
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	w21, [sp]
	ldr	x0, [x19]
	str	x22, [sp, #40]
Lloh0:
	adrp	x8, _swconfig_send_port@GOTPAGE
Lloh1:
	ldr	x8, [x8, _swconfig_send_port@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh3:
	adrp	x8, _swconfig_close_portlist@GOTPAGE
Lloh4:
	ldr	x8, [x8, _swconfig_close_portlist@GOTPAGEOFF]
	str	x0, [sp, #8]
	str	x8, [sp, #24]
	mov	x1, x21
	bl	_nla_nest_start
	ldr	x8, [sp, #16]
	str	w0, [x8]
	ldr	w21, [x20]
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	mov	x0, sp
	bl	_swconfig_send_multipart
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x21, [x20]
	add	x22, x22, #4
	cmp	x23, x21
	b.lt	LBB0_3
LBB0_5:
	mov	x0, sp
	mov	x1, #0
	bl	_swconfig_close_portlist
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_swconfig_send_port,4,2         ; @swconfig_send_port
	.no_dead_strip	_swconfig_send_ports
.subsections_via_symbols
