	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _wpa_snprintf_hex
__wpa_snprintf_hex:                     ## @_wpa_snprintf_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	addq	%rdi, %rsi
	movq	%rdi, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	testl	%r8d, %r8d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %r12d
	subl	%ebx, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_os_snprintf
	movl	%eax, %r13d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r13d, %rax
	addq	%rax, %rbx
	incq	%r14
	cmpq	%r14, %r15
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_4
LBB0_7:
	movb	$0, -1(%rsi)
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$0, -1(%rax)
LBB0_8:
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %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	"%02X"

L_.str.1:                               ## @.str.1
	.asciz	"%02x"

	.no_dead_strip	__wpa_snprintf_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _wpa_snprintf_hex
__wpa_snprintf_hex:                     ; @_wpa_snprintf_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	x1, LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x19, x0
	add	x26, x0, x1
	mov	x22, x0
	cbz	x3, LBB0_5
; %bb.2:
	mov	x21, x2
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w4, #0
	csel	x23, x9, x8, eq
	mov	x22, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w26, w22
	ldr	w3, [x21]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	bl	_os_snprintf
	mov	x24, x0
	mov	x0, x25
	mov	x1, x24
	bl	_os_snprintf_error
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, w24, sxtw
	add	x21, x21, #4
	subs	x20, x20, #1
	b.ne	LBB0_3
LBB0_5:
	sturb	wzr, [x26, #-1]
	sub	w0, w22, w19
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02X"

l_.str.1:                               ; @.str.1
	.asciz	"%02x"

	.no_dead_strip	__wpa_snprintf_hex
.subsections_via_symbols
