	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_vendor_elem_remove ## -- Begin function wpas_dbus_handler_vendor_elem_remove
	.p2align	4, 0x90
_wpas_dbus_handler_vendor_elem_remove:  ## @wpas_dbus_handler_vendor_elem_remove
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_dbus_message_iter_init
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dbus_message_iter_get_basic
	movq	-48(%rbp), %rax
	movq	_NUM_VENDOR_ELEM_FRAMES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_1
## %bb.2:
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_dbus_message_iter_next
	leaq	-68(%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
	cmpq	$0, -56(%rbp)
	je	LBB0_4
## %bb.3:
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wpas_vendor_elem
	movq	%rax, %r14
	movl	-36(%rbp), %esi
	cmpl	$1, %esi
	jne	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rax
	cmpb	$42, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_wpabuf_free
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r14, %rdi
	callq	_wpas_vendor_elem_update
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_1:
	movq	_DBUS_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_15
LBB0_4:
	movq	_DBUS_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_15
LBB0_8:
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.10:
	movq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_ieee802_11_parse_elems
	movq	_ParseFailed@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_DBUS_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_15
LBB0_9:
	movq	_DBUS_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_15
LBB0_12:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movl	-36(%rbp), %ecx
	movq	%r14, %rdi
	callq	_wpas_vendor_elem_remove
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_DBUS_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_15:
	movq	%r15, %rdi
	callq	_dbus_message_new_error
LBB0_16:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_VENDOR_ELEM_FRAMES,8,3     ## @NUM_VENDOR_ELEM_FRAMES
	.comm	_DBUS_ERROR_INVALID_ARGS,4,2    ## @DBUS_ERROR_INVALID_ARGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid ID"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid value"

L_.str.2:                               ## @.str.2
	.asciz	"ID value does not exist"

	.comm	_ParseFailed,8,3                ## @ParseFailed
L_.str.3:                               ## @.str.3
	.asciz	"Parse error"

L_.str.4:                               ## @.str.4
	.asciz	"Not found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_vendor_elem_remove ; -- Begin function wpas_dbus_handler_vendor_elem_remove
	.p2align	2
_wpas_dbus_handler_vendor_elem_remove:  ; @wpas_dbus_handler_vendor_elem_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_dbus_message_iter_init
	add	x0, sp, #12
	mov	x1, sp
	bl	_dbus_message_iter_get_basic
	ldr	x8, [sp]
Lloh0:
	adrp	x9, _NUM_VENDOR_ELEM_FRAMES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_VENDOR_ELEM_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.1:
	add	x0, sp, #12
	bl	_dbus_message_iter_next
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_dbus_message_iter_recurse
	add	x0, sp, #8
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_dbus_message_iter_get_fixed_array
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	x1, [sp]
	mov	x0, x20
	bl	_wpas_vendor_elem
	mov	x20, x0
	ldr	w1, [sp, #20]
	cmp	w1, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cmp	w8, #42
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [sp]
	ldr	x0, [x8, x9, lsl #3]
	bl	_wpabuf_free
	ldr	x8, [x20]
	ldr	x9, [sp]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_wpas_vendor_elem_update
	mov	x0, #0
	b	LBB0_15
LBB0_6:
Lloh3:
	adrp	x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_7:
Lloh8:
	adrp	x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_8:
	ldr	x8, [x20]
	ldr	x9, [sp]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x0, [sp, #24]
	add	x2, sp, #16
	mov	w3, #0
	bl	_ieee802_11_parse_elems
Lloh13:
	adrp	x8, _ParseFailed@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ParseFailed@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:
Lloh16:
	adrp	x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	x1, [sp]
	ldr	x2, [sp, #24]
	ldr	w3, [sp, #20]
	mov	x0, x20
	bl	_wpas_vendor_elem_remove
	cbz	x0, LBB0_15
; %bb.13:
Lloh26:
	adrp	x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DBUS_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dbus_message_new_error
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_VENDOR_ELEM_FRAMES,8,3     ; @NUM_VENDOR_ELEM_FRAMES
	.comm	_DBUS_ERROR_INVALID_ARGS,4,2    ; @DBUS_ERROR_INVALID_ARGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ID"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid value"

l_.str.2:                               ; @.str.2
	.asciz	"ID value does not exist"

	.comm	_ParseFailed,8,3                ; @ParseFailed
l_.str.3:                               ; @.str.3
	.asciz	"Parse error"

l_.str.4:                               ; @.str.4
	.asciz	"Not found"

.subsections_via_symbols
