	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_add_blob     ## -- Begin function wpas_dbus_handler_add_blob
	.p2align	4, 0x90
_wpas_dbus_handler_add_blob:            ## @wpas_dbus_handler_add_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_dbus_message_iter_init
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dbus_message_iter_get_basic
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi
	callq	_wpa_config_get_blob
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_WPAS_DBUS_ERROR_BLOB_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_dbus_message_new_error
LBB0_2:
	movq	%rax, %rbx
LBB0_3:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_dbus_message_iter_next
	leaq	-60(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dbus_message_iter_recurse
	leaq	-56(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_dbus_message_iter_get_fixed_array
	movl	$24, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r12
	movq	-56(%rbp), %rdi
	movl	-36(%rbp), %esi
	callq	_os_memdup
	movq	%rax, 8(%r12)
	movq	-48(%rbp), %rdi
	callq	_os_strdup
	movq	%rax, 16(%r12)
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_wpa_config_set_blob
	movq	16(%r12), %rsi
	movq	%r14, %rdi
	callq	_wpas_notify_blob_added
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_8:
	movq	%r15, %rdi
	callq	_wpas_dbus_error_no_memory
	jmp	LBB0_2
LBB0_9:
	movq	%r15, %rdi
	callq	_wpas_dbus_error_no_memory
	movq	%rax, %rbx
	movq	16(%r12), %rdi
	callq	_os_free
	movq	8(%r12), %rdi
	callq	_os_free
	movq	%r12, %rdi
	callq	_os_free
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_DBUS_ERROR_BLOB_EXISTS,4,2 ## @WPAS_DBUS_ERROR_BLOB_EXISTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_add_blob     ; -- Begin function wpas_dbus_handler_add_blob
	.p2align	2
_wpas_dbus_handler_add_blob:            ; @wpas_dbus_handler_add_blob
	.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	x19, x1
	mov	x20, x0
	add	x1, sp, #28
	bl	_dbus_message_iter_init
	add	x0, sp, #28
	add	x1, sp, #16
	bl	_dbus_message_iter_get_basic
	ldr	w0, [x19]
	ldr	x1, [sp, #16]
	bl	_wpa_config_get_blob
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _WPAS_DBUS_ERROR_BLOB_EXISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPAS_DBUS_ERROR_BLOB_EXISTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_dbus_message_new_error
LBB0_2:
	mov	x19, x0
LBB0_3:
	mov	x0, x19
	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
LBB0_4:
	add	x0, sp, #28
	bl	_dbus_message_iter_next
	add	x0, sp, #28
	add	x1, sp, #24
	bl	_dbus_message_iter_recurse
	add	x0, sp, #24
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_dbus_message_iter_get_fixed_array
	mov	w0, #24
	bl	_os_zalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #4]
	bl	_os_memdup
	str	x0, [x21, #8]
	ldr	x0, [sp, #16]
	bl	_os_strdup
	str	x0, [x21, #16]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.6:
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [sp, #4]
	str	w8, [x21]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_wpa_config_set_blob
	ldr	x1, [x21, #16]
	mov	x0, x19
	bl	_wpas_notify_blob_added
	mov	x19, #0
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_wpas_dbus_error_no_memory
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	bl	_wpas_dbus_error_no_memory
	mov	x19, x0
	ldr	x0, [x21, #16]
	bl	_os_free
	ldr	x0, [x21, #8]
	bl	_os_free
	mov	x0, x21
	bl	_os_free
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_DBUS_ERROR_BLOB_EXISTS,4,2 ; @WPAS_DBUS_ERROR_BLOB_EXISTS
.subsections_via_symbols
