	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gas_server_register            ## -- Begin function gas_server_register
	.p2align	4, 0x90
_gas_server_register:                   ## @gas_server_register
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movl	%edx, %r13d
	movq	_MAX_ADV_PROTO_ID_LEN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_4
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	$48, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movl	44(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_os_memcpy
	movl	%r13d, 40(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	movq	%rbx, 24(%r12)
	addq	$16, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dl_list_add
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ADV_PROTO_ID_LEN,4,2       ## @MAX_ADV_PROTO_ID_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gas_server_register            ; -- Begin function gas_server_register
	.p2align	2
_gas_server_register:                   ; @gas_server_register
	.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	x20, x0
	mov	w0, #-1
	cbz	x20, LBB0_5
; %bb.1:
	mov	x23, x2
Lloh0:
	adrp	x8, _MAX_ADV_PROTO_ID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ADV_PROTO_ID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lt	LBB0_5
; %bb.2:
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x1
	mov	w0, #48
	bl	_os_zalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x25, x0
	ldr	w0, [x0, #44]
	mov	x1, x24
	mov	x2, x23
	bl	_os_memcpy
	str	w23, [x25, #40]
	stp	x22, x21, [x25]
	add	x1, x25, #16
	stp	x20, x19, [x25, #24]
	mov	x0, x20
	bl	_dl_list_add
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ADV_PROTO_ID_LEN,4,2       ; @MAX_ADV_PROTO_ID_LEN
.subsections_via_symbols
