	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setlaggport
_setlaggport:                           ## @setlaggport
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	-36(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	-40(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCSLAGGPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rbx
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_warnx
	movq	_exit_code@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_name,8,3                       ## @name
	.comm	_SIOCSLAGGPORT,4,2              ## @SIOCSLAGGPORT
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s: SIOCSLAGGPORT: %s"

	.comm	_exit_code,4,2                  ## @exit_code
	.no_dead_strip	_setlaggport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setlaggport
_setlaggport:                           ; @setlaggport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x21, _name@GOTPAGE
Lloh1:
	ldr	x21, [x21, _name@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [sp, #8]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh2:
	adrp	x8, _SIOCSLAGGPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCSLAGGPORT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	x20, [x21]
	bl	_strerror
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_warnx
Lloh13:
	adrp	x8, _exit_code@GOTPAGE
Lloh14:
	ldr	x8, [x8, _exit_code@GOTPAGEOFF]
	mov	w9, #1
Lloh15:
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_name,8,3                       ; @name
	.comm	_SIOCSLAGGPORT,4,2              ; @SIOCSLAGGPORT
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s: SIOCSLAGGPORT: %s"

	.comm	_exit_code,4,2                  ; @exit_code
	.no_dead_strip	_setlaggport
.subsections_via_symbols
