	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_copy_inline_sgl
_siw_copy_inline_sgl:                   ## @siw_copy_inline_sgl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movq	8(%rsi), %rax
	leaq	24(%rax), %r15
	movl	(%rdi), %r12d
	movq	%r15, (%rax)
	movq	$0, 16(%rax)
	xorl	%edi, %edi
	movl	$0, %r13d
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.1:
	xorl	%r13d, %r13d
	movq	_SIW_MAX_INLINE@GOTPCREL(%rip), %rax
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	$1, %r14d
	subl	%r12d, %r14d
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-16(%rbx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	incl	%r14d
	addq	$16, %rbx
	cmpl	$1, %r14d
	jne	LBB0_3
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%edx, %r13d
	cmpl	(%rax), %r13d
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r12d
	negl	%r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	-8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_memcpy
	movq	_SIW_MAX_INLINE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	-16(%rbx), %r15
	testl	%r14d, %r14d
	jne	LBB0_2
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %edi
	setg	%al
	movq	8(%rsi), %rcx
	movl	%edi, 8(%rcx)
	movl	%eax, (%rsi)
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_MAX_INLINE,4,2             ## @SIW_MAX_INLINE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_siw_copy_inline_sgl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_copy_inline_sgl
_siw_copy_inline_sgl:                   ; @siw_copy_inline_sgl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldr	x22, [x0, #8]
	ldr	x8, [x1, #8]
	add	x21, x8, #24
	ldr	w26, [x0]
	str	x21, [x8]
	str	xzr, [x8, #16]
	mov	w20, #0
	cbz	w26, LBB0_8
; %bb.1:
	mov	w23, #1
Lloh0:
	adrp	x24, _SIW_MAX_INLINE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SIW_MAX_INLINE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	sub	w25, w23, w26
	add	x22, x22, #16
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x2, [x22, #-16]
	cbnz	x2, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	w25, w25, #1
	add	x22, x22, #16
	cmp	w25, #1
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	add	w20, w20, w2
	cmp	w20, w8
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	neg	w26, w25
	ldur	x1, [x22, #-8]
	mov	x0, x21
	bl	_memcpy
	ldur	x8, [x22, #-16]
	add	x21, x21, x8
	cbnz	w25, LBB0_2
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	cmp	w20, #0
	csel	w8, w20, wzr, gt
	ldr	x9, [x19, #8]
	cset	w10, gt
	str	w8, [x9, #8]
	str	w10, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_MAX_INLINE,4,2             ; @SIW_MAX_INLINE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_siw_copy_inline_sgl
.subsections_via_symbols
