	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_audio_component_bind
_i915_audio_component_bind:             ## @i915_audio_component_bind
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_kdev_to_i915
	movq	%rax, %r14
	movl	$1, %edi
	cmpq	$0, 16(%r13)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%r13)
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_DL_FLAG_STATELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_device_link_add
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_drm_modeset_lock_all
	movq	_i915_audio_component_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	%r15, 8(%r13)
	movq	_MAX_PORTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_I915_MAX_PORTS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	$0, (%rdi,%rbx,8)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	%r13, 8(%r14)
	movq	%r14, %rdi
	callq	_drm_modeset_unlock_all
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_DL_FLAG_STATELESS,4,2          ## @DL_FLAG_STATELESS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_i915_audio_component_ops,4,2   ## @i915_audio_component_ops
	.comm	_MAX_PORTS,8,3                  ## @MAX_PORTS
	.comm	_I915_MAX_PORTS,8,3             ## @I915_MAX_PORTS
	.no_dead_strip	_i915_audio_component_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_audio_component_bind
_i915_audio_component_bind:             ; @i915_audio_component_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_kdev_to_i915
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _DL_FLAG_STATELESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DL_FLAG_STATELESS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_device_link_add
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_drm_modeset_lock_all
Lloh7:
	adrp	x8, _i915_audio_component_ops@GOTPAGE
Lloh8:
	ldr	x8, [x8, _i915_audio_component_ops@GOTPAGEOFF]
	stp	x21, x8, [x19, #8]
Lloh9:
	adrp	x8, _MAX_PORTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_PORTS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _I915_MAX_PORTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I915_MAX_PORTS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	str	xzr, [x0, x21, lsl #3]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_10
LBB0_11:
	str	x19, [x20, #8]
	mov	x0, x20
	bl	_drm_modeset_unlock_all
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_DL_FLAG_STATELESS,4,2          ; @DL_FLAG_STATELESS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_i915_audio_component_ops,4,2   ; @i915_audio_component_ops
	.comm	_MAX_PORTS,8,3                  ; @MAX_PORTS
	.comm	_I915_MAX_PORTS,8,3             ; @I915_MAX_PORTS
	.no_dead_strip	_i915_audio_component_bind
.subsections_via_symbols
