	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_ctrl_set_blob
_wpas_ctrl_set_blob:                    ## @wpas_ctrl_set_blob
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_os_strchr
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	movq	%rbx, %rdi
	callq	_os_strlen
	movq	%rax, %r12
	testb	$1, %r12b
	jne	LBB0_9
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$24, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_os_strdup
	movq	%rax, 16(%r13)
	shrq	%r12
	movq	%r12, %rdi
	callq	_os_malloc
	movq	%rax, 8(%r13)
	cmpq	$0, 16(%r13)
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	%r12, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_wpa_config_set_blob
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	movq	%r13, %rdi
	callq	_wpa_config_free_blob
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL: Set blob '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"CTRL: Invalid blob hex data"

	.no_dead_strip	_wpas_ctrl_set_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_ctrl_set_blob
_wpas_ctrl_set_blob:                    ; @wpas_ctrl_set_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	strb	wzr, [x20], #1
	mov	x0, x20
	bl	_os_strlen
	mov	x23, x0
	tbnz	w23, #0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #24
	bl	_os_zalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	mov	x0, x22
	bl	_os_strdup
	str	x0, [x21, #16]
	lsr	x22, x23, #1
	mov	x0, x22
	bl	_os_malloc
	str	x0, [x21, #8]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x1, x0
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x2, x22
	bl	_hexstr2bin
	tbnz	x0, #63, LBB0_7
; %bb.6:
	str	x22, [x21]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_wpa_config_set_blob
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	mov	x0, x21
	bl	_wpa_config_free_blob
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL: Set blob '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"CTRL: Invalid blob hex data"

	.no_dead_strip	_wpas_ctrl_set_blob
.subsections_via_symbols
