	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiu_log_init
_wiiu_log_init:                         ## @wiiu_log_init
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_wiiu_log_lock@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_wiiu_log_socket@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	js	LBB0_1
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_broadcast_init
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%r15), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -48(%rbp)
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_socketclose
	movl	$-1, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_wiiu_log_lock,8,3              ## @wiiu_log_lock
	.comm	_wiiu_log_socket,4,2            ## @wiiu_log_socket
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.no_dead_strip	_wiiu_log_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiu_log_init
_wiiu_log_init:                         ; @wiiu_log_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _wiiu_log_lock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wiiu_log_lock@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x19, _wiiu_log_socket@GOTPAGE
Lloh4:
	ldr	x19, [x19, _wiiu_log_socket@GOTPAGEOFF]
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	_broadcast_init
	tbnz	x0, #63, LBB0_1
; %bb.3:
Lloh5:
	adrp	x20, _AF_INET@GOTPAGE
Lloh6:
	ldr	x20, [x20, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_1
; %bb.4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x20]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh10:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [sp, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #24
	bl	_bind
	tbz	x0, #63, LBB0_1
; %bb.5:
	ldr	w0, [x19]
	bl	_socketclose
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_wiiu_log_lock,8,3              ; @wiiu_log_lock
	.comm	_wiiu_log_socket,4,2            ; @wiiu_log_socket
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.no_dead_strip	_wiiu_log_init
.subsections_via_symbols
