	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_string_binary
_set_string_binary:                     ## @set_string_binary
	.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, %r13
	movq	%rcx, %rdi
	callq	_av_freep
	movl	$0, 8(%r14)
	testq	%r13, %r13
	je	LBB0_13
## %bb.1:
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	testb	$1, %al
	jne	LBB0_3
## %bb.5:
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ebx, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movb	(%r13), %al
	testb	%al, %al
	je	LBB0_12
## %bb.7:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_hexchar2int
	movl	%eax, %ebx
	movsbl	1(%r13,%r15), %edi
	callq	_hexchar2int
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	shll	$4, %ebx
	orl	%ebx, %eax
	movl	%eax, (%r12,%r15,2)
	movzbl	2(%r13,%r15), %eax
	addq	$2, %r15
	testb	%al, %al
	jne	LBB0_8
LBB0_12:
	movq	%r12, (%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	%r12, %rdi
	callq	_av_free
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_set_string_binary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_string_binary
_set_string_binary:                     ; @set_string_binary
	.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	x22, x2
	mov	x0, x3
	bl	_av_freep
	str	wzr, [x19, #8]
	cbz	x22, LBB0_10
; %bb.1:
	mov	x0, x22
	bl	_strlen
	cbz	w0, LBB0_10
; %bb.2:
	tbnz	w0, #0, LBB0_13
; %bb.3:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w20, w8, #1
	mov	x0, x20
	bl	_av_malloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x21, x0
	ldrb	w8, [x22]
	cbz	w8, LBB0_9
; %bb.5:
	add	x23, x22, #2
	mov	x24, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_hexchar2int
	mov	x22, x0
	ldursb	w0, [x23, #-1]
	bl	_hexchar2int
	tbnz	w22, #31, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w0, #31, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	orr	w8, w0, w22, lsl #4
	str	w8, [x24], #4
	ldrb	w8, [x23], #2
	cbnz	w8, LBB0_6
LBB0_9:
	str	x21, [x19]
	str	w20, [x19, #8]
LBB0_10:
	mov	w0, #0
	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
LBB0_11:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_av_free
LBB0_13:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_set_string_binary
.subsections_via_symbols
