	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wifi_display_subelem_hex       ## -- Begin function wifi_display_subelem_hex
	.p2align	4, 0x90
_wifi_display_subelem_hex:              ## @wifi_display_subelem_hex
	.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, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	callq	_wpabuf_head_u8
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%rax, %r13
	movq	_WIFI_DISPLAY_SUBELEM_HEADER_LEN@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jae	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx,8), %rdi
	addq	$8, %rdi
	callq	_WPA_GET_BE16
	movq	%rax, %r15
	movq	_WIFI_DISPLAY_SUBELEM_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%rbx), %rcx
	addq	%rax, %rcx
	cmpq	%r13, %rcx
	ja	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%rbx,8), %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, (%r14)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rcx, %rax
	movq	%rcx, %rbx
	cmpq	%r13, %rax
	jb	LBB0_4
	jmp	LBB0_10
LBB0_6:
	cmpq	$1000, %r15                     ## imm = 0x3E8
	ja	LBB0_10
## %bb.7:
	leal	(%r15,%r15), %r12d
	incl	%r12d
	movl	%r12d, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	_WIFI_DISPLAY_SUBELEM_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_wpa_snprintf_hex
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIFI_DISPLAY_SUBELEM_HEADER_LEN,8,3 ## @WIFI_DISPLAY_SUBELEM_HEADER_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wifi_display_subelem_hex       ; -- Begin function wifi_display_subelem_hex
	.p2align	2
_wifi_display_subelem_hex:              ; @wifi_display_subelem_hex
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_wpabuf_head_u8
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_wpabuf_len
Lloh0:
	adrp	x23, _WIFI_DISPLAY_SUBELEM_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WIFI_DISPLAY_SUBELEM_HEADER_LEN@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x0
	b.hs	LBB0_8
; %bb.3:
	mov	x22, x0
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x20, x25, lsl #3
	add	x0, x24, #8
	bl	_WPA_GET_BE16
	ldr	x8, [x23]
	add	x9, x0, x25
	add	x25, x9, x8
	cmp	x25, x22
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x24]
	cmp	x9, x19
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x25
	cmp	x8, x22
	b.lo	LBB0_4
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	cmp	x0, #1000
	b.ls	LBB0_10
LBB0_8:
	mov	x19, #0
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w20, #1
	bfi	w20, w21, #1, #31
	mov	x0, x20
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.11:
	ldr	x8, [x23]
	add	x2, x24, x8, lsl #3
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_wpa_snprintf_hex
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WIFI_DISPLAY_SUBELEM_HEADER_LEN,8,3 ; @WIFI_DISPLAY_SUBELEM_HEADER_LEN
.subsections_via_symbols
