	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_driver
_select_driver:                         ## @select_driver
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	_wpa_drivers@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rcx
	movq	8(%rcx), %rdx
	movq	(%r14), %rax
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	*%rdx
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_6
## %bb.3:
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
LBB0_4:
	movq	%rcx, 8(%r15)
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_wpa_drivers,8,3                ## @wpa_drivers
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize driver '%s'"

	.no_dead_strip	_select_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_driver
_select_driver:                         ; @select_driver
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x22, _wpa_drivers@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wpa_drivers@GOTPAGEOFF]
	ldr	x8, [x22]
	sxtw	x21, w1
	ldr	x9, [x8, w1, sxtw #3]
	ldr	x10, [x9, #8]
	ldr	x8, [x20]
	cbz	x10, LBB0_4
; %bb.1:
	ldr	x11, [x8, x21, lsl #3]
	cbnz	x11, LBB0_4
; %bb.2:
	mov	x0, x20
	blr	x10
	ldr	x8, [x20]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_6
; %bb.3:
	ldr	x9, [x22]
	ldr	x9, [x9, x21, lsl #3]
LBB0_4:
	mov	w0, #0
	str	x9, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [x19]
LBB0_5:
	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_6:
Lloh2:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_wpa_drivers,8,3                ; @wpa_drivers
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize driver '%s'"

	.no_dead_strip	_select_driver
.subsections_via_symbols
