	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbns_rq_opensocket
_nbns_rq_opensocket:                    ## @nbns_rq_opensocket
	.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
	movq	%rdi, %r14
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	_NBRQF_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_7
## %bb.3:
	movl	$1, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_1
## %bb.4:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_bzero
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	$12, -56(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %eax
	notl	%eax
	orl	4(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$12, %edx
	callq	_bind
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	sarq	$63, %rbx
	andl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_NBERR_NOBCASTIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NBERROR
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_errno,4,2                      ## @errno
	.comm	_NBRQF_BROADCAST,4,2            ## @NBRQF_BROADCAST
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_BROADCAST,4,2               ## @SO_BROADCAST
	.comm	_NBERR_NOBCASTIFS,4,2           ## @NBERR_NOBCASTIFS
	.no_dead_strip	_nbns_rq_opensocket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbns_rq_opensocket
_nbns_rq_opensocket:                    ; @nbns_rq_opensocket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _AF_INET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _NBRQF_BROADCAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NBRQF_BROADCAST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x20, x0
	mov	w8, #1
	str	w8, [sp, #12]
Lloh8:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SO_BROADCAST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SO_BROADCAST@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_7
; %bb.4:
	mov	w23, #12
	add	x0, sp, #16
	mov	w1, #12
	bl	_bzero
	ldr	w8, [x21]
	str	w8, [sp, #24]
	ldr	w8, [x22, #4]
	stp	w23, w8, [sp, #16]
	ldp	w9, w8, [x22]
	orn	w8, w8, w9
	str	w8, [x19, #16]
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #12
	bl	_bind
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	x9, x0, #63
	and	w0, w9, w8
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _NBERR_NOBCASTIFS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NBERR_NOBCASTIFS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_NBERROR
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_errno,4,2                      ; @errno
	.comm	_NBRQF_BROADCAST,4,2            ; @NBRQF_BROADCAST
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_BROADCAST,4,2               ; @SO_BROADCAST
	.comm	_NBERR_NOBCASTIFS,4,2           ; @NBERR_NOBCASTIFS
	.no_dead_strip	_nbns_rq_opensocket
.subsections_via_symbols
