	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_tx_for_packet_injection
_enable_tx_for_packet_injection:        ## @enable_tx_for_packet_injection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rdi), %edx
	movl	4(%rdi), %r8d
	movl	8(%rdi), %ecx
	callq	_wl1251_cmd_join
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_JOIN_EVENT_COMPLETE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$100, %edx
	callq	_wl1251_event_wait
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wl1251_warning                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_STA_BSS,4,2           ## @BSS_TYPE_STA_BSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"join failed"

	.comm	_JOIN_EVENT_COMPLETE_ID,4,2     ## @JOIN_EVENT_COMPLETE_ID
L_.str.1:                               ## @.str.1
	.asciz	"join timeout"

	.no_dead_strip	_enable_tx_for_packet_injection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_tx_for_packet_injection
_enable_tx_for_packet_injection:        ; @enable_tx_for_packet_injection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w2, [x0, #8]
	ldr	w4, [x0, #4]
	bl	_wl1251_cmd_join
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _JOIN_EVENT_COMPLETE_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JOIN_EVENT_COMPLETE_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #100
	bl	_wl1251_event_wait
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wl1251_warning
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_STA_BSS,4,2           ; @BSS_TYPE_STA_BSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"join failed"

	.comm	_JOIN_EVENT_COMPLETE_ID,4,2     ; @JOIN_EVENT_COMPLETE_ID
l_.str.1:                               ; @.str.1
	.asciz	"join timeout"

	.no_dead_strip	_enable_tx_for_packet_injection
.subsections_via_symbols
