	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wifi_driver_ctl                ## -- Begin function wifi_driver_ctl
	.p2align	4, 0x90
_wifi_driver_ctl:                       ## @wifi_driver_ctl
	.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
                                        ## kill: def $edi killed $edi def $rdi
	xorl	%r15d, %r15d
	addl	$-128, %edi
	cmpl	$9, %edi
	ja	LBB0_32
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_31:
	movq	_wifi_driver_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_32
LBB0_19:
	movq	_wifi_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.20:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.21:
	movq	_wifi_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.22:
	callq	*%rcx
	jmp	LBB0_32
LBB0_23:
	movq	_wifi_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:
	movq	_wifi_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.25:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:
	movq	_configuration_settings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_32
## %bb.27:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	movq	_wifi_driver_active@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_32
LBB0_13:
	movq	_wifi_driver_active@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_32
LBB0_28:
	movq	_wifi_data@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_32
## %bb.29:
	movl	$135, %edi
	callq	_wifi_driver_ctl
	movq	_wifi_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	*8(%rcx)
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_32
## %bb.30:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_RARCH_ERR
	jmp	LBB0_31
LBB0_4:
	movq	_configuration_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -40(%rbp)
	movq	_RARCH_DRIVER_CTL_FIND_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_driver_ctl
	movl	-48(%rbp), %edi
	testl	%edi, %edi
	js	LBB0_6
## %bb.5:
	callq	_wifi_driver_find_handle
	movq	_wifi_driver@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_32
LBB0_2:
	movq	_wifi_driver_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_wifi_driver@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_wifi_data@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_32
LBB0_14:
	movq	_wifi_data@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.15:
	movq	_wifi_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	callq	*%rax
LBB0_18:
	movq	$0, (%rbx)
LBB0_32:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_verbosity_is_enabled
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG_OUTPUT
	xorl	%edi, %edi
	callq	_wifi_driver_find_handle
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_wifi_drivers@GOTPCREL(%rip), %r12
	leaq	L_.str.3(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG_OUTPUT
	incl	%ebx
	movl	%ebx, %edi
	callq	_wifi_driver_find_handle
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	callq	_RARCH_WARN
LBB0_11:
	xorl	%edi, %edi
	callq	_wifi_driver_find_handle
	movq	_wifi_driver@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_32
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_retroarch_fail
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_19
	.long	L0_0_set_23
	.long	L0_0_set_32
	.long	L0_0_set_3
	.long	L0_0_set_13
	.long	L0_0_set_28
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_wifi_driver_active,4,2         ## @wifi_driver_active
	.comm	_wifi_driver,8,3                ## @wifi_driver
	.comm	_wifi_data,8,3                  ## @wifi_data
	.comm	_configuration_settings,8,3     ## @configuration_settings
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wifi_driver"

	.comm	_RARCH_DRIVER_CTL_FIND_INDEX,4,2 ## @RARCH_DRIVER_CTL_FIND_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find any wifi driver named \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"Available wifi drivers are:\n"

L_.str.3:                               ## @.str.3
	.asciz	"\t%s\n"

	.comm	_wifi_drivers,8,3               ## @wifi_drivers
L_.str.4:                               ## @.str.4
	.asciz	"Going to default to first wifi driver...\n"

L_.str.5:                               ## @.str.5
	.asciz	"find_wifi_driver()"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to initialize wifi driver. Will continue without wifi.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wifi_driver_ctl                ; -- Begin function wifi_driver_ctl
	.p2align	2
_wifi_driver_ctl:                       ; @wifi_driver_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x8, x0
	mov	w0, #0
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_30
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
Lloh2:
	adrp	x8, _wifi_driver_active@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wifi_driver_active@GOTPAGEOFF]
Lloh4:
	str	wzr, [x8]
	b	LBB0_30
LBB0_3:
Lloh5:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_29
; %bb.4:
	ldr	x8, [x8, #16]
Lloh8:
	adrp	x9, _wifi_data@GOTPAGE
Lloh9:
	ldr	x9, [x9, _wifi_data@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x9]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_29
; %bb.5:
	blr	x8
	b	LBB0_29
LBB0_6:
Lloh11:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _wifi_data@GOTPAGE
Lloh15:
	ldr	x9, [x9, _wifi_data@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x9]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_29
; %bb.7:
	ldr	x1, [x8]
	cbz	x1, LBB0_29
; %bb.8:
Lloh17:
	adrp	x8, _configuration_settings@GOTPAGE
Lloh18:
	ldr	x8, [x8, _configuration_settings@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_29
; %bb.9:
	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
	add	sp, sp, #80
	br	x1
LBB0_10:
	mov	w0, #0
Lloh20:
	adrp	x8, _wifi_driver_active@GOTPAGE
Lloh21:
	ldr	x8, [x8, _wifi_driver_active@GOTPAGEOFF]
	mov	w9, #1
Lloh22:
	str	w9, [x8]
	b	LBB0_30
LBB0_11:
Lloh23:
	adrp	x8, _wifi_driver_active@GOTPAGE
Lloh24:
	ldr	x8, [x8, _wifi_driver_active@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_12:
Lloh26:
	adrp	x19, _wifi_data@GOTPAGE
Lloh27:
	ldr	x19, [x19, _wifi_data@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_29
; %bb.13:
	mov	w0, #135
	bl	_wifi_driver_ctl
Lloh28:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh29:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	blr	x8
	str	x0, [x19]
	cbnz	x0, LBB0_29
; %bb.14:
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_RARCH_ERR
	b	LBB0_2
LBB0_15:
Lloh33:
	adrp	x8, _configuration_settings@GOTPAGE
Lloh34:
	ldr	x8, [x8, _configuration_settings@GOTPAGEOFF]
Lloh35:
	ldr	x19, [x8]
Lloh36:
	adrp	x8, l_.str@PAGE
Lloh37:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	ldr	w8, [x19, #4]
	str	w8, [sp, #24]
Lloh38:
	adrp	x8, _RARCH_DRIVER_CTL_FIND_INDEX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RARCH_DRIVER_CTL_FIND_INDEX@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_driver_ctl
	ldr	w0, [sp, #16]
	tbnz	w0, #31, LBB0_22
; %bb.16:
	bl	_wifi_driver_find_handle
Lloh41:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh42:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh43:
	str	x0, [x8]
	b	LBB0_29
LBB0_17:
	mov	w0, #0
Lloh44:
	adrp	x8, _wifi_driver_active@GOTPAGE
Lloh45:
	ldr	x8, [x8, _wifi_driver_active@GOTPAGEOFF]
Lloh46:
	str	wzr, [x8]
Lloh47:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh48:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh49:
	str	xzr, [x8]
Lloh50:
	adrp	x8, _wifi_data@GOTPAGE
Lloh51:
	ldr	x8, [x8, _wifi_data@GOTPAGEOFF]
Lloh52:
	str	xzr, [x8]
	b	LBB0_30
LBB0_18:
Lloh53:
	adrp	x19, _wifi_data@GOTPAGE
Lloh54:
	ldr	x19, [x19, _wifi_data@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh55:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh56:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_21
; %bb.19:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_21
; %bb.20:
	blr	x8
LBB0_21:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_30
LBB0_22:
	bl	_verbosity_is_enabled
	cbz	w0, LBB0_27
; %bb.23:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh58:
	adrp	x0, l_.str.1@PAGE
Lloh59:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_ERR
Lloh60:
	adrp	x0, l_.str.2@PAGE
Lloh61:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_LOG_OUTPUT
	mov	w0, #0
	bl	_wifi_driver_find_handle
	cbz	x0, LBB0_26
; %bb.24:
	mov	w19, #0
Lloh62:
	adrp	x21, _wifi_drivers@GOTPAGE
Lloh63:
	ldr	x21, [x21, _wifi_drivers@GOTPAGEOFF]
Lloh64:
	adrp	x20, l_.str.3@PAGE
Lloh65:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, w19, uxtw #3]
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x20
	bl	_RARCH_LOG_OUTPUT
	add	w19, w19, #1
	mov	x0, x19
	bl	_wifi_driver_find_handle
	cbnz	x0, LBB0_25
LBB0_26:
Lloh66:
	adrp	x0, l_.str.4@PAGE
Lloh67:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_RARCH_WARN
LBB0_27:
	mov	w0, #0
	bl	_wifi_driver_find_handle
Lloh68:
	adrp	x8, _wifi_driver@GOTPAGE
Lloh69:
	ldr	x8, [x8, _wifi_driver@GOTPAGEOFF]
Lloh70:
	str	x0, [x8]
	cbnz	x0, LBB0_29
; %bb.28:
Lloh71:
	adrp	x1, l_.str.5@PAGE
Lloh72:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_retroarch_fail
LBB0_29:
	mov	w0, #0
LBB0_30:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotStr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_wifi_driver_active,4,2         ; @wifi_driver_active
	.comm	_wifi_driver,8,3                ; @wifi_driver
	.comm	_wifi_data,8,3                  ; @wifi_data
	.comm	_configuration_settings,8,3     ; @configuration_settings
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wifi_driver"

	.comm	_RARCH_DRIVER_CTL_FIND_INDEX,4,2 ; @RARCH_DRIVER_CTL_FIND_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find any wifi driver named \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"Available wifi drivers are:\n"

l_.str.3:                               ; @.str.3
	.asciz	"\t%s\n"

	.comm	_wifi_drivers,8,3               ; @wifi_drivers
l_.str.4:                               ; @.str.4
	.asciz	"Going to default to first wifi driver...\n"

l_.str.5:                               ; @.str.5
	.asciz	"find_wifi_driver()"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to initialize wifi driver. Will continue without wifi.\n"

.subsections_via_symbols
