	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wifi_display_subelem_get       ## -- Begin function wifi_display_subelem_get
	.p2align	4, 0x90
_wifi_display_subelem_get:              ## @wifi_display_subelem_get
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_atoi
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	js	LBB0_9
## %bb.2:
	movq	_MAX_WFD_SUBELEMS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_9
## %bb.3:
	movq	(%r12), %rax
	movl	%ecx, %ebx
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:
	callq	_wpabuf_head_u8
	leaq	1(%rax), %r13
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_len
	leaq	-1(%rax), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_snprintf_hex               ## TAILCALL
LBB0_5:
	movq	%r12, %rdi
	callq	_wifi_display_get_wfd_ie
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_wpabuf_head
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_wpa_snprintf_hex
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movl	%r14d, %eax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"all"

	.comm	_MAX_WFD_SUBELEMS,4,2           ## @MAX_WFD_SUBELEMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wifi_display_subelem_get       ; -- Begin function wifi_display_subelem_get
	.p2align	2
_wifi_display_subelem_get:              ; @wifi_display_subelem_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_os_strcmp
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_atoi
	mov	x8, x0
	mov	w0, #-1
	tbnz	w8, #31, LBB0_7
; %bb.2:
Lloh2:
	adrp	x9, _MAX_WFD_SUBELEMS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_WFD_SUBELEMS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.3:
	ldr	x9, [x21]
	ldr	x0, [x9, w8, uxtw #3]
	cbz	x0, LBB0_7
; %bb.4:
	mov	w23, w8
	bl	_wpabuf_head_u8
	add	x22, x0, #1
	ldr	x8, [x21]
	ldr	x0, [x8, x23, lsl #3]
	bl	_wpabuf_len
	sub	x3, x0, #1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_snprintf_hex
LBB0_5:
	mov	x0, x21
	bl	_wifi_display_get_wfd_ie
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_wpa_snprintf_hex
	mov	x19, x0
	mov	x0, x21
	bl	_wpabuf_free
	mov	x0, x19
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all"

	.comm	_MAX_WFD_SUBELEMS,4,2           ; @MAX_WFD_SUBELEMS
.subsections_via_symbols
