	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lochnagar_aif_set_master
_lochnagar_aif_set_master:              ## @lochnagar_aif_set_master
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %r12
	movq	(%r13,%r12,8), %rax
	movq	_LN_FTYPE_AIF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r13,%r12,8), %r15
	xorl	%ebx, %ebx
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rcx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rcx
LBB0_5:
	movl	(%r14), %edi
	movl	8(%r13,%r12,8), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	8(,%r12,8), %rax
	addq	%r13, %rax
	movl	(%r14), %edi
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_err
	movl	%r15d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LN_FTYPE_AIF,8,3               ## @LN_FTYPE_AIF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set AIF %s to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"master"

L_.str.2:                               ## @.str.2
	.asciz	"slave"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to set %s mode: %d\n"

	.no_dead_strip	_lochnagar_aif_set_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lochnagar_aif_set_master
_lochnagar_aif_set_master:              ; @lochnagar_aif_set_master
	.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
	ldr	x8, [x0, #8]
	mov	w9, #24
	umaddl	x10, w1, w9, x8
	ldr	x9, [x10]
Lloh0:
	adrp	x11, _LN_FTYPE_AIF@GOTPAGE
Lloh1:
	ldr	x11, [x11, _LN_FTYPE_AIF@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	ldr	x20, [x9]
	mov	w9, w1
	ldr	x22, [x10, #16]
	cbz	w2, LBB0_4
; %bb.2:
	mov	w21, #0
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	ldr	w21, [x22]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_5:
	ldr	w0, [x19]
	mov	w10, #24
	madd	x23, x9, x10, x8
	ldr	w2, [x23, #8]!
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldp	w2, w1, [x22]
	mov	x0, x20
	mov	x3, x21
	bl	_regmap_update_bits
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	ldr	w2, [x23]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_dev_err
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LN_FTYPE_AIF,8,3               ; @LN_FTYPE_AIF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set AIF %s to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"master"

l_.str.2:                               ; @.str.2
	.asciz	"slave"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to set %s mode: %d\n"

	.no_dead_strip	_lochnagar_aif_set_master
.subsections_via_symbols
