	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs47l85_patch                  ## -- Begin function cs47l85_patch
	.p2align	4, 0x90
_cs47l85_patch:                         ## @cs47l85_patch
	.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	%rdi, %r14
	cmpl	$2, (%rdi)
	movq	_cs47l85_revc_16_patch@GOTPCREL(%rip), %rax
	cmovbq	_cs47l85_reva_16_patch@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_cs47l85_revc_32_patch@GOTPCREL(%rip), %rbx
	cmovbq	_cs47l85_reva_32_patch@GOTPCREL(%rip), %rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r14), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_regmap_register_patch
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	8(%r14), %edi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_regmap_register_patch
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cs47l85_reva_16_patch,8,3      ## @cs47l85_reva_16_patch
	.comm	_cs47l85_reva_32_patch,8,3      ## @cs47l85_reva_32_patch
	.comm	_cs47l85_revc_16_patch,8,3      ## @cs47l85_revc_16_patch
	.comm	_cs47l85_revc_32_patch,8,3      ## @cs47l85_revc_32_patch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in applying 16-bit patch: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error in applying 32-bit patch: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs47l85_patch                  ; -- Begin function cs47l85_patch
	.p2align	2
_cs47l85_patch:                         ; @cs47l85_patch
	.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, _cs47l85_reva_16_patch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cs47l85_reva_16_patch@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	adrp	x10, _cs47l85_revc_16_patch@GOTPAGE
Lloh3:
	ldr	x10, [x10, _cs47l85_revc_16_patch@GOTPAGEOFF]
	cmp	w9, #2
	csel	x8, x8, x10, lo
	ldr	x20, [x8]
Lloh4:
	adrp	x8, _cs47l85_reva_32_patch@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cs47l85_reva_32_patch@GOTPAGEOFF]
Lloh6:
	adrp	x9, _cs47l85_revc_32_patch@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cs47l85_revc_32_patch@GOTPAGEOFF]
	csel	x21, x8, x9, lo
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	x21, [x21]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x22, x0
	ldr	w0, [x19, #12]
	mov	x1, x20
	mov	x2, x23
	bl	_regmap_register_patch
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_register_patch
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x2, x20
	bl	_dev_err
LBB0_6:
	mov	x0, x20
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cs47l85_reva_16_patch,8,3      ; @cs47l85_reva_16_patch
	.comm	_cs47l85_reva_32_patch,8,3      ; @cs47l85_reva_32_patch
	.comm	_cs47l85_revc_16_patch,8,3      ; @cs47l85_revc_16_patch
	.comm	_cs47l85_revc_32_patch,8,3      ; @cs47l85_revc_32_patch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in applying 16-bit patch: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error in applying 32-bit patch: %d\n"

.subsections_via_symbols
