	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_mux_alloc                  ## -- Begin function i2c_mux_alloc
	.p2align	4, 0x90
_i2c_mux_alloc:                         ## @i2c_mux_alloc
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_adapter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movslq	%r14d, %rsi
	addq	%rax, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movslq	%r12d, %rcx
	shlq	$2, %rcx
	addq	56(%rax), %rcx
	movq	%rcx, 64(%rax)
LBB0_3:
	movq	%r13, 48(%rax)
	movq	%rbx, 40(%rax)
	movq	_I2C_MUX_LOCKED@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$1, (%rax)
LBB0_5:
	movq	_I2C_MUX_ARBITRATOR@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$1, 4(%rax)
LBB0_7:
	movq	16(%rbp), %rcx
	movq	_I2C_MUX_GATE@GOTPCREL(%rip), %rdx
	testl	%r15d, (%rdx)
	je	LBB0_9
## %bb.8:
	movl	$1, 8(%rax)
LBB0_9:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 16(%rax)
	movq	%rcx, 24(%rax)
	movl	%r12d, 32(%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adapter,4,2                    ## @adapter
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_I2C_MUX_LOCKED,4,2             ## @I2C_MUX_LOCKED
	.comm	_I2C_MUX_ARBITRATOR,4,2         ## @I2C_MUX_ARBITRATOR
	.comm	_I2C_MUX_GATE,4,2               ## @I2C_MUX_GATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_mux_alloc                  ; -- Begin function i2c_mux_alloc
	.p2align	2
_i2c_mux_alloc:                         ; @i2c_mux_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x25, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _adapter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adapter@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_struct_size
	add	x1, x0, w25, sxtw
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	cbz	w25, LBB0_3
; %bb.2:
	ldr	x8, [x0, #56]
	add	x8, x8, w21, sxtw #2
	str	x8, [x0, #64]
LBB0_3:
	stp	x23, x24, [x0, #40]
Lloh6:
	adrp	x8, _I2C_MUX_LOCKED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_MUX_LOCKED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x0]
LBB0_5:
Lloh9:
	adrp	x8, _I2C_MUX_ARBITRATOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_MUX_ARBITRATOR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x0, #4]
LBB0_7:
Lloh12:
	adrp	x8, _I2C_MUX_GATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_MUX_GATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x0, #8]
LBB0_9:
	stp	x20, x19, [x0, #16]
	str	w21, [x0, #32]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_adapter,4,2                    ; @adapter
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_I2C_MUX_LOCKED,4,2             ; @I2C_MUX_LOCKED
	.comm	_I2C_MUX_ARBITRATOR,4,2         ; @I2C_MUX_ARBITRATOR
	.comm	_I2C_MUX_GATE,4,2               ; @I2C_MUX_GATE
.subsections_via_symbols
