	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_vendor_cmd
_wpa_supplicant_vendor_cmd:             ## @wpa_supplicant_vendor_cmd
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r12
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_strtoul
	movl	%eax, %r13d
	movq	-48(%rbp), %rbx
	movzbl	(%rbx), %edi
	callq	_isblank
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_8
## %bb.2:
	movzbl	%al, %edi
	callq	_isblank
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	incq	%rbx
	movq	%rbx, %rdi
	callq	_os_strlen
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	shrq	%r14
	movq	%r14, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_os_free
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_8:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	-1(%r15), %rdi
	shrq	%rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	%rax, %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	callq	_wpa_drv_vendor_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_wpabuf_head_u8
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_wpa_snprintf_hex
	movl	%eax, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	%r12, %rdi
	callq	_os_free
	jmp	LBB0_16
LBB0_14:
	movq	%r12, %rdi
	callq	_os_free
LBB0_15:
	movl	$-1, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vendor command: wrong parameter format"

	.no_dead_strip	_wpa_supplicant_vendor_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_vendor_cmd
_wpa_supplicant_vendor_cmd:             ; @wpa_supplicant_vendor_cmd
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #16
	bl	_strtoul
	mov	x22, x0
	ldr	x23, [sp, #8]
	ldrb	w0, [x23]
	bl	_isblank
	cbz	w0, LBB0_7
; %bb.1:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #10
	bl	_strtoul
	mov	x24, x0
	ldr	x23, [sp, #8]
	ldrb	w0, [x23]
	cbz	w0, LBB0_8
; %bb.2:
	bl	_isblank
	cbz	w0, LBB0_7
; %bb.3:
	add	x26, x23, #1
	mov	x0, x26
	bl	_os_strlen
	cbz	x0, LBB0_8
; %bb.4:
	lsr	x25, x0, #1
	mov	x0, x25
	bl	_os_malloc
	cbz	x0, LBB0_14
; %bb.5:
	mov	x23, x0
	mov	x0, x26
	mov	x1, x23
	mov	x2, x25
	bl	_hexstr2bin
	cbz	x0, LBB0_9
; %bb.6:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	bl	_os_free
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_8:
	mov	x23, #0
	mov	x25, #0
LBB0_9:
	sub	x8, x19, #1
	lsr	x0, x8, #1
	bl	_wpabuf_alloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x26, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	bl	_wpa_drv_vendor_cmd
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x26
	bl	_wpabuf_head_u8
	mov	x21, x0
	mov	x0, x26
	bl	_wpabuf_len
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_wpa_snprintf_hex
	mov	x21, x0
LBB0_12:
	mov	x0, x26
	bl	_wpabuf_free
	mov	x0, x23
	bl	_os_free
	b	LBB0_15
LBB0_13:
	mov	x0, x23
	bl	_os_free
LBB0_14:
	mov	w21, #-1
LBB0_15:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vendor command: wrong parameter format"

	.no_dead_strip	_wpa_supplicant_vendor_cmd
.subsections_via_symbols
