	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_i2c_pad_acquire           ## -- Begin function nvkm_i2c_pad_acquire
	.p2align	4, 0x90
_nvkm_i2c_pad_acquire:                  ## @nvkm_i2c_pad_acquire
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_PAD_TRACE
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movslq	(%rbx), %rax
	xorl	%r15d, %r15d
	cmpl	%r14d, %eax
	je	LBB0_4
## %bb.1:
	movq	_NVKM_I2C_PAD_OFF@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nvkm_i2c_pad_mode_locked
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acquire"

	.comm	_NVKM_I2C_PAD_OFF,8,3           ## @NVKM_I2C_PAD_OFF
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_i2c_pad_acquire           ; -- Begin function nvkm_i2c_pad_acquire
	.p2align	2
_nvkm_i2c_pad_acquire:                  ; @nvkm_i2c_pad_acquire
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PAD_TRACE
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldrsw	x8, [x20]
	cmp	w8, w19
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _NVKM_I2C_PAD_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NVKM_I2C_PAD_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_nvkm_i2c_pad_mode_locked
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_mutex_unlock
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acquire"

	.comm	_NVKM_I2C_PAD_OFF,8,3           ; @NVKM_I2C_PAD_OFF
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
