	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_set_driver
_wpa_supplicant_set_driver:             ## @wpa_supplicant_set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	_wpa_drivers@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.3:
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.4:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%r15), %rbx
	testq	%r15, %r15
	je	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_os_strchr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r13
	subq	%rbx, %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_os_strlen
	movq	%rax, %r13
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r12), %rax
	movq	8(%rax,%r14,8), %rax
	incq	%r14
	testq	%rax, %rax
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rdi
	callq	_os_strlen
	cmpq	%r13, %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_os_strncmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_select_driver
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_17
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_select_driver
	movq	%rax, %rbx
	jmp	LBB0_17
LBB0_16:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_msg
	movl	$-1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"No driver interfaces build into wpa_supplicant"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported driver '%s'"

	.no_dead_strip	_wpa_supplicant_set_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_set_driver
_wpa_supplicant_set_driver:             ; @wpa_supplicant_set_driver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x25, _wpa_drivers@GOTPAGE
Lloh1:
	ldr	x25, [x25, _wpa_drivers@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.2:
	mov	x20, x1
	cbz	x1, LBB0_15
; %bb.3:
	mov	x21, x20
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x22, #1
	cbz	x22, LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x21
	mov	w1, #44
	bl	_os_strchr
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x23, x22, x21
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_os_strlen
	mov	x23, x0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x25]
	add	x8, x8, x24, lsl #3
	add	x24, x24, #1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x8]
	bl	_os_strlen
	cmp	x0, x23
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x25]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_os_strncmp
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_select_driver
	cbnz	x0, LBB0_10
	b	LBB0_19
LBB0_14:
Lloh2:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	mov	w1, #0
	bl	_select_driver
	b	LBB0_19
LBB0_16:
Lloh7:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_wpa_msg
LBB0_18:
	mov	w0, #-1
LBB0_19:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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	"No driver interfaces build into wpa_supplicant"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported driver '%s'"

	.no_dead_strip	_wpa_supplicant_set_driver
.subsections_via_symbols
