	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_hex2bin
_php_hex2bin:                           ## @php_hex2bin
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rbx
	shrq	%rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_zend_string_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ZSTR_VAL
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$2, %r13
	jb	LBB0_7
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	$2, %rbx
	movl	$1, %r12d
	cmovaeq	%rbx, %r12
	xorl	%r13d, %r13d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movzbl	(%r14,%r13,2), %r15d
	movl	%r15d, %ebx
	andl	$-33, %ebx
	leal	-65(%rbx), %eax
	addl	$-71, %ebx
	xorl	%eax, %ebx
	movl	%ebx, %eax
	shrl	$31, %eax
	movl	%r15d, %ecx
	xorl	$48, %ecx
	addl	$-10, %ecx
	sarl	$31, %ecx
	orl	%eax, %ecx
	movzbl	%cl, %edi
	callq	_EXPECTED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r14,%r13,2), %eax
	movl	%eax, %r12d
	andl	$-33, %r12d
	leal	-65(%r12), %ecx
	leal	-71(%r12), %r14d
	xorl	%ecx, %r14d
	movl	%r14d, %ecx
	shrl	$31, %ecx
	xorl	$48, %eax
	addl	$-10, %eax
	sarl	$31, %eax
	orl	%ecx, %eax
	movzbl	%al, %edi
	callq	_EXPECTED
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	$31, %ebx
	andb	$9, %bl
	addb	%r15b, %bl
	shlb	$4, %bl
	sarl	$31, %r14d
	andb	$-39, %r14b
	addb	%r12b, %r14b
	addb	$-16, %r14b
	orb	%bl, %r14b
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax,%r13)
	incq	%r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r13, %r12
	jne	LBB0_2
## %bb.6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax,%r12)
	jmp	LBB0_8
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_zend_string_efree
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_php_hex2bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_hex2bin
_php_hex2bin:                           ; @php_hex2bin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x21, x0
	lsr	x22, x1, #1
	mov	x0, x22
	mov	w1, #0
	bl	_zend_string_alloc
	mov	x19, x0
	bl	_ZSTR_VAL
	cmp	x23, #2
	b.hs	LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_7
LBB0_2:
	cmp	x22, #1
	csinc	x22, x22, xzr, hi
	add	x21, x21, #1
	mov	w23, #217
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x24, x0
	mov	x25, x22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w26, [x21, #-1]
	and	w8, w26, #0xffffffdf
	sub	w9, w8, #65
	sub	w8, w8, #71
	eor	w27, w9, w8
	lsr	w8, w27, #31
	eor	w9, w26, #0x30
	sub	w9, w9, #10
	orr	w8, w8, w9, asr #31
	and	w0, w8, #0xff
	bl	_EXPECTED
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21]
	and	w28, w8, #0xffffffdf
	sub	w9, w28, #65
	sub	w10, w28, #71
	eor	w20, w9, w10
	lsr	w9, w20, #31
	eor	w8, w8, #0x30
	sub	w8, w8, #10
	orr	w8, w9, w8, asr #31
	and	w0, w8, #0xff
	bl	_EXPECTED
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	asr	w8, w27, #31
	and	w8, w8, #0xfffffff9
	add	w8, w8, w26
	and	w9, w23, w20, asr #31
	add	w9, w28, w9
	sub	w9, w9, #16
	orr	w8, w9, w8, lsl #4
	strb	w8, [x24], #1
	add	x21, x21, #2
	subs	x25, x25, #1
	b.ne	LBB0_3
; %bb.6:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
LBB0_7:
	strb	wzr, [x0, x22]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_zend_string_efree
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_php_hex2bin
.subsections_via_symbols
