	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_init_sockets
_hostap_init_sockets:                   ## @hostap_init_sockets
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_PF_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ETH_P_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_socket
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_handle_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_eloop_register_read_sock
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_5:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-36(%rbp), %edi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_os_snprintf
	cmpl	$4, %eax
	jl	LBB0_10
## %bb.6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movl	$-1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r12), %rdi
	movq	_SIOCGIFINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_12:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hostap_set_iface_flags
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.13:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AF_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	-44(%rbp), %edx
	movl	%edx, -64(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_15
## %bb.14:
	movq	(%r12), %rdi
	movl	8(%r12), %esi
	movq	%r14, %rdx
	callq	_linux_get_ifhwaddr
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_15:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_PACKET,4,2                  ## @PF_PACKET
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_ETH_P_ALL,4,2                  ## @ETH_P_ALL
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket[PF_PACKET,SOCK_RAW]: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_handle_read,4,2                ## @handle_read
L_.str.1:                               ## @.str.1
	.asciz	"Could not register read socket"

L_.str.2:                               ## @.str.2
	.asciz	"%sap"

L_.str.3:                               ## @.str.3
	.asciz	"hostap: AP interface name truncated"

	.comm	_SIOCGIFINDEX,4,2               ## @SIOCGIFINDEX
L_.str.4:                               ## @.str.4
	.asciz	"ioctl(SIOCGIFINDEX): %s"

	.comm	_AF_PACKET,4,2                  ## @AF_PACKET
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.5:                               ## @.str.5
	.asciz	"Opening raw packet socket for ifindex %d"

L_.str.6:                               ## @.str.6
	.asciz	"bind: %s"

	.no_dead_strip	_hostap_init_sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_init_sockets
_hostap_init_sockets:                   ; @hostap_init_sockets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PF_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _ETH_P_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_socket
	str	x0, [x20]
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _handle_read@GOTPAGE
Lloh10:
	ldr	x8, [x8, _handle_read@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, #0
	bl	_eloop_register_read_sock
	cbz	x0, LBB0_5
; %bb.2:
Lloh12:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	b	LBB0_7
LBB0_5:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #44]
	ldr	w3, [x20, #8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_os_snprintf
	cmp	w0, #4
	b.lt	LBB0_10
; %bb.6:
Lloh27:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x0, [x20]
Lloh32:
	adrp	x8, _SIOCGIFINDEX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIOCGIFINDEX@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_ioctl
	cbz	x0, LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w19, [x8]
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_12:
	mov	x0, x20
	mov	w1, #1
	bl	_hostap_set_iface_flags
	cbnz	x0, LBB0_8
; %bb.13:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh43:
	adrp	x8, _AF_PACKET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AF_PACKET@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [sp, #36]
	str	w8, [sp, #24]
	str	w9, [sp, #16]
Lloh46:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20]
	add	x1, sp, #16
	mov	w2, #16
	bl	_bind
	tbnz	x0, #63, LBB0_15
; %bb.14:
	ldr	x0, [x20]
	ldr	w1, [x20, #8]
	mov	x2, x19
	bl	_linux_get_ifhwaddr
	b	LBB0_9
LBB0_15:
Lloh51:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w19, [x8]
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_PACKET,4,2                  ; @PF_PACKET
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_ETH_P_ALL,4,2                  ; @ETH_P_ALL
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket[PF_PACKET,SOCK_RAW]: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_handle_read,4,2                ; @handle_read
l_.str.1:                               ; @.str.1
	.asciz	"Could not register read socket"

l_.str.2:                               ; @.str.2
	.asciz	"%sap"

l_.str.3:                               ; @.str.3
	.asciz	"hostap: AP interface name truncated"

	.comm	_SIOCGIFINDEX,4,2               ; @SIOCGIFINDEX
l_.str.4:                               ; @.str.4
	.asciz	"ioctl(SIOCGIFINDEX): %s"

	.comm	_AF_PACKET,4,2                  ; @AF_PACKET
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.5:                               ; @.str.5
	.asciz	"Opening raw packet socket for ifindex %d"

l_.str.6:                               ; @.str.6
	.asciz	"bind: %s"

	.no_dead_strip	_hostap_init_sockets
.subsections_via_symbols
