	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_ctrl_iface_init ## -- Begin function wpa_supplicant_ctrl_iface_init
	.p2align	4, 0x90
_wpa_supplicant_ctrl_iface_init:        ## @wpa_supplicant_ctrl_iface_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WPA_CTRL_IFACE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movl	$-1, (%rax)
	movl	4(%rax), %edi
	movq	_COOKIE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_os_get_random
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_4
LBB0_5:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	-136(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movl	%eax, -120(%rbp)
	movl	%r14d, %ebx
	negl	%ebx
	movq	_WPA_CTRL_IFACE_PORT_LIMIT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_htons
	movq	%rax, -136(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$32, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%r14d
	incl	%ebx
	movq	_WPA_CTRL_IFACE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmpl	(%r13), %eax
	jl	LBB0_9
## %bb.11:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.4(%rip), %rdx
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	movl	$40, %esi
	movl	%r14d, %ecx
	callq	_os_snprintf
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_os_free
	movq	%r12, %rdi
	callq	_os_strdup
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.20:
	movl	(%r15), %edi
	movq	_wpa_supplicant_ctrl_iface_receive@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_eloop_register_read_sock
	movq	_wpa_supplicant_ctrl_iface_msg_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_msg_register_cb
	jmp	LBB0_18
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_13:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
LBB0_14:
	movl	(%r15), %edi
	testl	%edi, %edi
	js	LBB0_16
## %bb.15:
	callq	_close
LBB0_16:
	movq	%r15, %rdi
	callq	_os_free
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.19:
	movq	%r15, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_CTRL_IFACE_PORT,4,2        ## @WPA_CTRL_IFACE_PORT
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_COOKIE_LEN,4,2                 ## @COOKIE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp:"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid ctrl_iface UDP port: %s"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.2:                               ## @.str.2
	.asciz	"socket(PF_INET): %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_WPA_CTRL_IFACE_PORT_LIMIT,4,2  ## @WPA_CTRL_IFACE_PORT_LIMIT
L_.str.3:                               ## @.str.3
	.asciz	"bind(AF_INET): %s"

L_.str.4:                               ## @.str.4
	.asciz	"udp:%d"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to malloc ctrl_interface"

	.comm	_wpa_supplicant_ctrl_iface_receive,4,2 ## @wpa_supplicant_ctrl_iface_receive
	.comm	_wpa_supplicant_ctrl_iface_msg_cb,4,2 ## @wpa_supplicant_ctrl_iface_msg_cb
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_in6addr_any,4,2                ## @in6addr_any
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_ctrl_iface_init ; -- Begin function wpa_supplicant_ctrl_iface_init
	.p2align	2
_wpa_supplicant_ctrl_iface_init:        ; @wpa_supplicant_ctrl_iface_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _WPA_CTRL_IFACE_PORT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WPA_CTRL_IFACE_PORT@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh5:
	adrp	x8, _PF_INET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	w0, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
	str	x20, [x19, #8]
	mov	w8, #-1
	str	w8, [x19]
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _COOKIE_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COOKIE_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_os_get_random
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_17
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_os_strstr
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x0, #4
	bl	_atoi
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_13
LBB0_4:
Lloh13:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
Lloh16:
	adrp	x8, _AF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	str	w0, [sp, #16]
	neg	w22, w21
Lloh19:
	adrp	x24, _WPA_CTRL_IFACE_PORT_LIMIT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _WPA_CTRL_IFACE_PORT_LIMIT@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_htons
	str	x0, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #32
	bl	_bind
	tbz	x0, #63, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, #1
	ldr	w8, [x23]
	ldr	w9, [x24]
	add	w22, w22, #1
	add	w8, w8, w22
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.8:
Lloh21:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh29:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x20
	b	LBB0_14
LBB0_11:
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #32
	mov	w1, #40
	mov	x3, x21
	bl	_os_snprintf
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_os_free
	add	x0, sp, #32
	bl	_os_strdup
	ldr	x8, [x20]
	str	x0, [x8]
	cbz	x0, LBB0_19
; %bb.12:
	ldr	w0, [x19]
Lloh39:
	adrp	x8, _wpa_supplicant_ctrl_iface_receive@GOTPAGE
Lloh40:
	ldr	x8, [x8, _wpa_supplicant_ctrl_iface_receive@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x19
	bl	_eloop_register_read_sock
Lloh42:
	adrp	x8, _wpa_supplicant_ctrl_iface_msg_cb@GOTPAGE
Lloh43:
	ldr	x8, [x8, _wpa_supplicant_ctrl_iface_msg_cb@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_wpa_msg_register_cb
	b	LBB0_17
LBB0_13:
Lloh45:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x2, [x8]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	bl	_wpa_printf
	ldr	w0, [x19]
	tbnz	w0, #31, LBB0_16
LBB0_15:
	bl	_close
LBB0_16:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
Lloh53:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x2, l_.str.5@PAGE
Lloh57:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_wpa_msg
	ldr	w0, [x19]
	tbz	w0, #31, LBB0_15
	b	LBB0_16
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_CTRL_IFACE_PORT,4,2        ; @WPA_CTRL_IFACE_PORT
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_COOKIE_LEN,4,2                 ; @COOKIE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp:"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid ctrl_iface UDP port: %s"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.2:                               ; @.str.2
	.asciz	"socket(PF_INET): %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_WPA_CTRL_IFACE_PORT_LIMIT,4,2  ; @WPA_CTRL_IFACE_PORT_LIMIT
l_.str.3:                               ; @.str.3
	.asciz	"bind(AF_INET): %s"

l_.str.4:                               ; @.str.4
	.asciz	"udp:%d"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to malloc ctrl_interface"

	.comm	_wpa_supplicant_ctrl_iface_receive,4,2 ; @wpa_supplicant_ctrl_iface_receive
	.comm	_wpa_supplicant_ctrl_iface_msg_cb,4,2 ; @wpa_supplicant_ctrl_iface_msg_cb
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_in6addr_any,4,2                ; @in6addr_any
.subsections_via_symbols
