	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_write_script
_twl4030_write_script:                  ## @twl4030_write_script
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$4, %r15
	movq	_END_OF_SCRIPT@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%r14d
	addq	$8, %r15
	xorl	%eax, %eax
	movq	%rbx, %r12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r14d
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-4(%r15), %edx
	movl	(%r15), %esi
	leaq	1(%r12), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rcx
	callq	_twl4030_write_script_ins
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-4(%r15), %edx
	movl	(%r15), %esi
	movq	(%r13), %rcx
	movq	%r12, %rdi
	callq	_twl4030_write_script_ins
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	movq	%r12, %rbx
	jmp	LBB0_7
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_END_OF_SCRIPT,8,3              ## @END_OF_SCRIPT
	.no_dead_strip	_twl4030_write_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_write_script
_twl4030_write_script:                  ; @twl4030_write_script
	.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, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	add	x21, x1, #4
Lloh3:
	adrp	x22, _END_OF_SCRIPT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _END_OF_SCRIPT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	add	x21, x21, #8
	mov	x19, x20
	mov	x2, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w23, w2, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w2, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x21, #-4]
	add	x20, x19, #1
	mov	x0, x19
	mov	x3, x20
	bl	_twl4030_write_script_ins
	cbz	w0, LBB0_1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x21, #-4]
	ldr	x3, [x22]
	mov	x0, x19
	bl	_twl4030_write_script_ins
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x19, #1
	b	LBB0_1
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_END_OF_SCRIPT,8,3              ; @END_OF_SCRIPT
	.no_dead_strip	_twl4030_write_script
.subsections_via_symbols
