	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%eax, %eax
	callq	_os_program_init
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	movq	_wpa_debug_level@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_wpa_debug_show_keys@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	cmpl	$4, %ebx
	jne	LBB0_5
## %bb.2:
	movq	16(%r12), %rdi
	movq	%r14, %rsi
	callq	_hwaddr_aton
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	16(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
LBB0_5:
	leaq	L_str.7(%rip), %rdi
LBB0_6:
	callq	_puts
LBB0_7:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.8:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	callq	_eap_register_methods
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_11:
	xorl	%eax, %eax
	callq	_eloop_init
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_13:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	movq	8(%r12), %rdi
	xorl	%esi, %esi
	callq	_wpa_config_read
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	cmpq	$0, 8(%rax)
	je	LBB0_22
## %bb.15:
	movq	24(%r12), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_wpa_init_conf
	movq	%rbx, %rdi
	callq	_wpa_supplicant_ctrl_iface_init
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	8(%rcx), %rsi
	leaq	-80(%rbp), %rdi
	callq	_wpa_supplicant_scard_init
	testq	%rax, %rax
	jne	LBB0_7
## %bb.17:
	movl	-80(%rbp), %edi
	movq	-64(%rbp), %rax
	movq	8(%rax), %rdx
	movq	%r14, %rsi
	callq	_rsn_preauth_init
	testq	%rax, %rax
	jne	LBB0_7
## %bb.18:
	movq	_eapol_test_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rcx
	movl	$30, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	movq	_eapol_test_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rbx
	xorl	%edi, %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	movq	_eapol_test_terminate@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_eloop_register_signal_terminate
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_eloop_register_signal_reconfig
	xorl	%eax, %eax
	callq	_eloop_run
	movl	$-2, %r15d
	cmpq	$0, -104(%rbp)
	jne	LBB0_20
## %bb.19:
	movl	-80(%rbp), %edi
	subq	$8, %rsp
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_pmksa_cache_set_current
	addq	$16, %rsp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,2), %r15d
	addl	$-3, %r15d
LBB0_20:
	leaq	-80(%rbp), %rdi
	callq	_test_eapol_clean
	xorl	%eax, %eax
	callq	_eap_peer_unregister_methods
	xorl	%eax, %eax
	callq	_eloop_destroy
	xorl	%eax, %eax
	callq	_os_program_deinit
	jmp	LBB0_7
LBB0_21:
	movq	8(%r12), %rsi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_4
LBB0_22:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_6
LBB0_23:
	movq	(%rcx), %rsi
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_4
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_wpa_debug_level,8,3            ## @wpa_debug_level
	.comm	_wpa_debug_show_keys,4,2        ## @wpa_debug_show_keys
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Failed to parse target address '%s'.\n"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register EAP methods"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to initialize event loop"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to parse configuration file '%s'.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to initialize control interface '%s'.\nYou may have another preauth_test process already running or the file was\nleft by an unclean termination of preauth_test in which case you will need\nto manually remove this file before starting preauth_test again.\n"

	.comm	_eapol_test_timeout,4,2         ## @eapol_test_timeout
	.comm	_eapol_test_poll,4,2            ## @eapol_test_poll
	.comm	_eapol_test_terminate,4,2       ## @eapol_test_terminate
L_str:                                  ## @str
	.asciz	"No networks defined."

L_str.7:                                ## @str.7
	.asciz	"usage: preauth_test <conf> <target MAC address> <ifname>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #80
	mov	x20, x1
	mov	x21, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	bl	_os_program_init
	cbnz	x0, LBB0_12
; %bb.1:
	sub	x0, x29, #104
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
Lloh8:
	adrp	x8, _wpa_debug_level@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wpa_debug_level@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x8, _wpa_debug_show_keys@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wpa_debug_show_keys@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
	cmp	w21, #4
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x20, #16]
	mov	x1, x19
	bl	_hwaddr_aton
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x20, #16]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_printf
	add	sp, sp, #16
	b	LBB0_12
LBB0_5:
Lloh16:
	adrp	x0, l_str.7@PAGE
Lloh17:
	add	x0, x0, l_str.7@PAGEOFF
LBB0_6:
	bl	_puts
	b	LBB0_12
LBB0_7:
	bl	_eap_register_methods
	cbz	x0, LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	bl	_eloop_init
	cbz	x0, LBB0_15
; %bb.10:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	sp, x22
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.14:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	sub	x0, x29, #72
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
	ldr	x0, [x20, #8]
	mov	x1, #0
	bl	_wpa_config_read
	stur	x0, [x29, #-56]
	cbz	x0, LBB0_22
; %bb.16:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_23
; %bb.17:
	ldr	x1, [x20, #24]
	sub	x0, x29, #72
	bl	_wpa_init_conf
	sub	x0, x29, #72
	bl	_wpa_supplicant_ctrl_iface_init
	stur	x0, [x29, #-48]
	ldur	x8, [x29, #-56]
	cbz	x0, LBB0_24
; %bb.18:
	ldr	x1, [x8, #8]
	sub	x0, x29, #72
	bl	_wpa_supplicant_scard_init
	cbnz	x0, LBB0_12
; %bb.19:
	ldur	w0, [x29, #-72]
	ldur	x8, [x29, #-56]
	ldr	x2, [x8, #8]
	mov	x1, x19
	bl	_rsn_preauth_init
	cbnz	x0, LBB0_12
; %bb.20:
Lloh31:
	adrp	x8, _eapol_test_timeout@GOTPAGE
Lloh32:
	ldr	x8, [x8, _eapol_test_timeout@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	sub	x3, x29, #104
	mov	w0, #30
	mov	w1, #0
	mov	x4, #0
	bl	_eloop_register_timeout
Lloh34:
	adrp	x8, _eapol_test_poll@GOTPAGE
Lloh35:
	ldr	x8, [x8, _eapol_test_poll@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	sub	x3, x29, #72
	mov	w0, #0
	mov	w1, #34464
	movk	w1, #1, lsl #16
	mov	x4, #0
	bl	_eloop_register_timeout
Lloh37:
	adrp	x20, _eapol_test_terminate@GOTPAGE
Lloh38:
	ldr	x20, [x20, _eapol_test_terminate@GOTPAGEOFF]
	ldr	w0, [x20]
	sub	x1, x29, #72
	bl	_eloop_register_signal_terminate
	ldr	w0, [x20]
	sub	x1, x29, #72
	bl	_eloop_register_signal_reconfig
	bl	_eloop_run
	ldur	x8, [x29, #-96]
	cbz	x8, LBB0_25
; %bb.21:
	mov	w19, #-2
	b	LBB0_26
LBB0_22:
	ldr	x8, [x20, #8]
	str	x8, [sp, #-16]!
Lloh39:
	adrp	x0, l_.str.4@PAGE
Lloh40:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_23:
Lloh41:
	adrp	x0, l_str@PAGE
Lloh42:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_6
LBB0_24:
	ldr	x8, [x8]
	str	x8, [sp, #-16]!
Lloh43:
	adrp	x0, l_.str.6@PAGE
Lloh44:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_25:
	ldur	w0, [x29, #-72]
	mov	x1, #0
	mov	x2, x19
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_pmksa_cache_set_current
	cmp	x0, #0
	mov	w8, #-3
	csel	w19, w8, wzr, eq
LBB0_26:
	sub	x0, x29, #72
	bl	_test_eapol_clean
	bl	_eap_peer_unregister_methods
	bl	_eloop_destroy
	bl	_os_program_deinit
	b	LBB0_13
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_wpa_debug_level,8,3            ; @wpa_debug_level
	.comm	_wpa_debug_show_keys,4,2        ; @wpa_debug_show_keys
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Failed to parse target address '%s'.\n"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register EAP methods"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to initialize event loop"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to parse configuration file '%s'.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to initialize control interface '%s'.\nYou may have another preauth_test process already running or the file was\nleft by an unclean termination of preauth_test in which case you will need\nto manually remove this file before starting preauth_test again.\n"

	.comm	_eapol_test_timeout,4,2         ; @eapol_test_timeout
	.comm	_eapol_test_poll,4,2            ; @eapol_test_poll
	.comm	_eapol_test_terminate,4,2       ; @eapol_test_terminate
l_str:                                  ; @str
	.asciz	"No networks defined."

l_str.7:                                ; @str.7
	.asciz	"usage: preauth_test <conf> <target MAC address> <ifname>"

.subsections_via_symbols
