	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_sockaddr                    ## -- Begin function nb_sockaddr
	.p2align	4, 0x90
_nb_sockaddr:                           ## @nb_sockaddr
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%r12), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_AF_IPX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_4:
	movq	%r15, %rdi
	callq	_nb_name_len
	movl	%eax, %ebx
	movq	_NB_ENCNAMELEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_6:
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_nb_snballoc
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	-40(%rbp), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_nb_name_encode
	cmpl	%eax, %ebx
	je	LBB0_9
## %bb.8:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_9:
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	-40(%rbp), %rdi
	movl	8(%r12), %edx
	movq	%r12, %rsi
	callq	_memcpy
LBB0_11:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_IPX,8,3                     ## @AF_IPX
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_NB_ENCNAMELEN,4,2              ## @NB_ENCNAMELEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"a bug somewhere in the nb_name* code"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_sockaddr                    ; -- Begin function nb_sockaddr
	.p2align	2
_nb_sockaddr:                           ; @nb_sockaddr
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AF_IPX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AF_IPX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
LBB0_2:
	mov	x0, x21
	bl	_nb_name_len
Lloh6:
	adrp	x8, _NB_ENCNAMELEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NB_ENCNAMELEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	x22, x0
	add	x1, sp, #8
	bl	_nb_snballoc
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_nb_name_encode
	cmp	w22, w0
	b.eq	LBB0_7
; %bb.6:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	ldr	x0, [sp, #8]
	ldr	w2, [x20, #8]
	mov	x1, x20
	bl	_memcpy
LBB0_9:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_IPX,8,3                     ; @AF_IPX
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_NB_ENCNAMELEN,4,2              ; @NB_ENCNAMELEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"a bug somewhere in the nb_name* code"

.subsections_via_symbols
