	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_ctrl_iface_receive
_hostapd_ctrl_iface_receive:            ## @hostapd_ctrl_iface_receive
	.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
	pushq	%rax
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -4148(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	leaq	-4144(%rbp), %rsi
	leaq	-4152(%rbp), %r8
	leaq	-4148(%rbp), %r9
	movl	$4095, %edx                     ## imm = 0xFFF
	xorl	%ecx, %ecx
	callq	_recvfrom
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r14, -4160(%rbp)               ## 8-byte Spill
	movl	%eax, %eax
	movb	$0, -4144(%rbp,%rax)
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rsi
	leaq	-4144(%rbp), %r15
	movq	%r15, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_MSG_EXCESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump_ascii
	movl	-4148(%rbp), %r9d
	leaq	-4152(%rbp), %rbx
	movq	-4160(%rbp), %rdi               ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	movq	%rbx, %r8
	callq	_hostapd_ctrl_iface_receive_process
	movl	-4148(%rbp), %r9d
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movq	%r14, %rdi
	callq	_os_free
	jmp	LBB0_11
LBB0_1:
	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_5:
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_3:
	movl	-4148(%rbp), %r9d
	leaq	L_.str.1(%rip), %rsi
	leaq	-4152(%rbp), %r8
	movl	%r13d, %edi
	movl	$5, %edx
	xorl	%ecx, %ecx
	callq	_sendto
	testq	%rax, %rax
	js	LBB0_4
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recvfrom(ctrl_iface): %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"FAIL\n"

L_.str.2:                               ## @.str.2
	.asciz	"CTRL: sendto failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"PING"

	.comm	_MSG_EXCESSIVE,4,2              ## @MSG_EXCESSIVE
L_.str.4:                               ## @.str.4
	.asciz	"RX ctrl_iface"

	.comm	_COOKIE_LEN,4,2                 ## @COOKIE_LEN
	.comm	_cookie,4,2                     ## @cookie
	.no_dead_strip	_hostapd_ctrl_iface_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_ctrl_iface_receive
_hostapd_ctrl_iface_receive:            ; @hostapd_ctrl_iface_receive
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x21, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w8, #4
	str	w8, [sp, #12]
Lloh5:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w24, [x23]
	add	x20, sp, #24
	add	x1, sp, #24
	add	x4, sp, #16
	add	x5, sp, #12
	mov	w3, #0
	mov	w2, #4095
	bl	_recvfrom
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x22, x0
	strb	wzr, [x20, w0, uxtw]
	mov	w0, #4096
	bl	_os_malloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	bl	_os_strcmp
Lloh9:
	adrp	x8, _MSG_EXCESSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_EXCESSIVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, w24, eq
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #24
	mov	x3, x22
	bl	_wpa_hexdump_ascii
	ldr	w5, [sp, #12]
	add	x1, sp, #24
	add	x4, sp, #16
	mov	x0, x21
	mov	x2, x20
	mov	w3, #4096
	bl	_hostapd_ctrl_iface_receive_process
	mov	x2, x0
	ldr	w5, [sp, #12]
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_sendto
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w19, [x23]
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_4:
	mov	x0, x20
	bl	_os_free
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_wpa_printf
	b	LBB0_8
LBB0_7:
	ldr	w5, [sp, #12]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x4, sp, #16
	mov	x0, x19
	mov	w2, #5
	mov	w3, #0
	bl	_sendto
	tbnz	x0, #63, LBB0_10
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w19, [x23]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recvfrom(ctrl_iface): %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"FAIL\n"

l_.str.2:                               ; @.str.2
	.asciz	"CTRL: sendto failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"PING"

	.comm	_MSG_EXCESSIVE,4,2              ; @MSG_EXCESSIVE
l_.str.4:                               ; @.str.4
	.asciz	"RX ctrl_iface"

	.comm	_COOKIE_LEN,4,2                 ; @COOKIE_LEN
	.comm	_cookie,4,2                     ; @cookie
	.no_dead_strip	_hostapd_ctrl_iface_receive
.subsections_via_symbols
