	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_listen_address
_siw_listen_address:                    ## @siw_listen_address
	.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	%ecx, %r12d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_to_siw_dev
	movq	%rax, %r13
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%r12d, %edi
	callq	_sock_create
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$1, -52(%rbp)
	movq	-48(%rbp), %rdi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movl	$4, %r8d
	callq	_kernel_setsockopt
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_5:
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_siw_dbg
LBB0_9:
	movl	8(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_siw_dbg
LBB0_15:
	movq	-48(%rbp), %rdi
	callq	_sock_release
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	callq	_siw_cep_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %r13
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_siw_cep_socket_assoc
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_siw_cm_alloc_work
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_siw_dbg
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_17:
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rax
	movl	%r15d, %esi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_siw_dbg
LBB0_12:
	movl	8(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_siw_dbg
	movq	%r13, %rdi
	callq	_siw_cep_set_inuse
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	*(%rdi)
	movq	$0, 16(%r13)
LBB0_14:
	movq	$0, 8(%r13)
	movq	-48(%rbp), %rdi
	callq	_siw_socket_disassoc
	movq	_SIW_EPSTATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_siw_cep_set_free
	movq	%r13, %rdi
	callq	_siw_cep_put
	jmp	LBB0_15
LBB0_19:
	movq	%r14, 16(%r13)
	movq	%r14, %rdi
	callq	*24(%r14)
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_23
## %bb.20:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	movq	16(%r14), %rsi
LBB0_23:
	movq	%r13, %rdi
	addq	$24, %rdi
	callq	_list_add_tail
	movq	_SIW_EPSTATE_LISTENING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	leal	4(%r15), %edx
	movl	8(%r14), %edi
	movl	(%r15), %ecx
	cmpl	%r12d, (%rax)
	jne	LBB0_26
## %bb.24:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_25
LBB0_26:
	leaq	L_.str.5(%rip), %rsi
LBB0_25:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_siw_dbg
	jmp	LBB0_16
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setsockopt error: %d\n"

	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"socket bind error: %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"alloc_work error %d, backlog %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"listen error %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SIW_EPSTATE_LISTENING,4,2      ## @SIW_EPSTATE_LISTENING
L_.str.4:                               ## @.str.4
	.asciz	"Listen at laddr %pI4 %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"Listen at laddr %pI6 %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed: %d\n"

	.comm	_SIW_EPSTATE_CLOSED,4,2         ## @SIW_EPSTATE_CLOSED
	.no_dead_strip	_siw_listen_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_listen_address
_siw_listen_address:                    ; @siw_listen_address
	.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	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_siw_dev
	mov	x20, x0
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	x0, x21
	bl	_sock_create
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #20]
	ldr	x0, [sp, #24]
Lloh6:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #20
	mov	w4, #4
	bl	_kernel_setsockopt
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x22, x0
	b	LBB0_9
LBB0_4:
	ldr	x0, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x23
	mov	w2, #8
	blr	x8
	cbz	w0, LBB0_10
; %bb.5:
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x22
	bl	_siw_dbg
LBB0_7:
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x22
	bl	_siw_dbg
LBB0_8:
	ldr	x0, [sp, #24]
	bl	_sock_release
LBB0_9:
	mov	x0, x22
	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
LBB0_10:
	mov	x0, x20
	bl	_siw_cep_alloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x20, x0
	ldr	x1, [sp, #24]
	bl	_siw_cep_socket_assoc
	mov	x0, x20
	mov	x1, x24
	bl	_siw_cm_alloc_work
	cbz	w0, LBB0_14
; %bb.12:
	mov	x22, x0
	ldr	w0, [x19, #8]
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_14:
	ldr	x0, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	x1, x24
	blr	x8
	cbz	w0, LBB0_20
; %bb.15:
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x2, x22
	bl	_siw_dbg
LBB0_17:
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x22
	bl	_siw_dbg
	mov	x0, x20
	bl	_siw_cep_set_inuse
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x8, [x0]
	blr	x8
	str	xzr, [x20, #16]
LBB0_19:
	str	xzr, [x20, #8]
	ldr	x0, [sp, #24]
	bl	_siw_socket_disassoc
Lloh27:
	adrp	x8, _SIW_EPSTATE_CLOSED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIW_EPSTATE_CLOSED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_siw_cep_set_free
	mov	x0, x20
	bl	_siw_cep_put
	b	LBB0_8
LBB0_20:
	str	x19, [x20, #16]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	ldr	x1, [x19, #16]
	cbnz	x1, LBB0_23
; %bb.21:
Lloh30:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_27
; %bb.22:
	bl	_INIT_LIST_HEAD
	ldr	x1, [x19, #16]
LBB0_23:
	add	x0, x20, #24
	bl	_list_add_tail
Lloh33:
	adrp	x8, _SIW_EPSTATE_LISTENING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SIW_EPSTATE_LISTENING@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _AF_INET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
	str	w8, [x20]
Lloh38:
	ldr	w9, [x9]
	ldr	w0, [x19, #8]
	add	w2, w23, #4
	ldr	w8, [x23]
	cmp	w9, w21
	b.ne	LBB0_25
; %bb.24:
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_25:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_26:
	bl	_siw_dbg
	mov	w22, #0
	b	LBB0_9
LBB0_27:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setsockopt error: %d\n"

	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"socket bind error: %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"alloc_work error %d, backlog %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"listen error %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SIW_EPSTATE_LISTENING,4,2      ; @SIW_EPSTATE_LISTENING
l_.str.4:                               ; @.str.4
	.asciz	"Listen at laddr %pI4 %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"Listen at laddr %pI6 %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed: %d\n"

	.comm	_SIW_EPSTATE_CLOSED,4,2         ; @SIW_EPSTATE_CLOSED
	.no_dead_strip	_siw_listen_address
.subsections_via_symbols
