	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_aes_arg
_set_aes_arg:                           ## @set_aes_arg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	(%rdx), %r8d
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.1:
	movq	_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r8d
	jne	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.4:
	movq	_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	jne	LBB0_9
## %bb.5:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rcx, %rdi
	movl	%r14d, %esi
	callq	_av_memdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movl	%r14d, (%rbx)
	jmp	LBB0_2
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r9, %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r9, %rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_11
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r9, %rcx
	movl	%r14d, %r8d
LBB0_10:
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s not set\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BLOCKSIZE,4,2                  ## @BLOCKSIZE
L_.str.1:                               ## @.str.1
	.asciz	"invalid %s size (%d bytes, block size is %d)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_set_aes_arg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_aes_arg
_set_aes_arg:                           ; @set_aes_arg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w8, [x2]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _BLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLOCKSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x19, x4
	cbz	w4, LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _BLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLOCKSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.5:
	mov	x20, x2
	mov	x21, x1
	mov	x0, x3
	mov	x1, x19
	bl	_av_memdup
	str	x0, [x21]
	cbz	x0, LBB0_13
; %bb.6:
	str	w19, [x20]
	b	LBB0_2
LBB0_7:
Lloh6:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	stp	x19, x8, [sp]
LBB0_10:
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	x3, x5
	bl	_av_log
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	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
	add	sp, sp, #64
	b	_AVERROR
LBB0_13:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s not set\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BLOCKSIZE,4,2                  ; @BLOCKSIZE
l_.str.1:                               ; @.str.1
	.asciz	"invalid %s size (%d bytes, block size is %d)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_set_aes_arg
.subsections_via_symbols
