	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_transmit
_tpm_transmit:                          ## @tpm_transmit
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	2(%rsi), %edi
	callq	_be32_to_cpu
	movq	%rax, %r14
	movl	6(%r15), %edi
	callq	_be32_to_cpu
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, %r14
	jbe	LBB0_4
## %bb.3:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_E2BIG@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_1:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_4:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*56(%r12)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	cmpq	$0, 48(%r12)
	je	LBB0_7
LBB0_13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	*32(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.14:
	movl	4(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_5:
	movl	%eax, %ebx
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_tpm_calc_ordinal_duration
	movq	%rax, %rbx
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	_TPM_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	*8(%r12)
	movl	16(%r12), %ecx
	andl	%eax, %ecx
	cmpl	20(%r12), %ecx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	24(%r12), %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edi
	callq	_msleep
	xorl	%eax, %eax
	callq	_rmb
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_8
## %bb.12:
	movq	%r12, %rdi
	callq	*40(%r12)
	movl	4(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIME@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_10:
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ECANCELED@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid count value %x %zx \n"

	.comm	_E2BIG,4,2                      ## @E2BIG
L_.str.1:                               ## @.str.1
	.asciz	"tpm_transmit: tpm_send: error %zd\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.2:                               ## @.str.2
	.asciz	"Operation Canceled\n"

	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.comm	_TPM_TIMEOUT,4,2                ## @TPM_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"Operation Timed out\n"

	.comm	_ETIME,4,2                      ## @ETIME
L_.str.4:                               ## @.str.4
	.asciz	"tpm_transmit: tpm_recv: error %zd\n"

	.no_dead_strip	_tpm_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpm_transmit
_tpm_transmit:                          ; @tpm_transmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldur	w0, [x1, #2]
	bl	_be32_to_cpu
	mov	x22, x0
	ldur	w0, [x21, #6]
	bl	_be32_to_cpu
	cbz	x22, LBB0_3
; %bb.1:
	cmp	x22, x20
	b.ls	LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
	stp	x22, x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _E2BIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _ENODATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_5:
	mov	x23, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #56]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	blr	x8
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
LBB0_7:
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x22, x0
	tbz	w0, #31, LBB0_18
; %bb.8:
	ldr	w0, [x19, #4]
	mov	x8, x22
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x22, x0
	ldr	w0, [x19, #4]
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_dev_err
	b	LBB0_18
LBB0_11:
Lloh10:
	adrp	x24, _jiffies@GOTPAGE
Lloh11:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x22, [x24]
	mov	x0, x19
	mov	x1, x23
	bl	_tpm_calc_ordinal_duration
	add	x22, x0, x22
Lloh12:
	adrp	x23, _TPM_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x23, [x23, _TPM_TIMEOUT@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldp	w8, w9, [x19, #16]
	and	w8, w8, w0
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19, #24]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x23]
	bl	_msleep
	bl	_rmb
	ldr	x0, [x24]
	mov	x1, x22
	bl	_time_before
	cbnz	x0, LBB0_12
; %bb.15:
	ldr	x8, [x19, #40]
	mov	x0, x19
	blr	x8
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _ETIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid count value %x %zx \n"

	.comm	_E2BIG,4,2                      ; @E2BIG
l_.str.1:                               ; @.str.1
	.asciz	"tpm_transmit: tpm_send: error %zd\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.2:                               ; @.str.2
	.asciz	"Operation Canceled\n"

	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.comm	_TPM_TIMEOUT,4,2                ; @TPM_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"Operation Timed out\n"

	.comm	_ETIME,4,2                      ; @ETIME
l_.str.4:                               ; @.str.4
	.asciz	"tpm_transmit: tpm_recv: error %zd\n"

	.no_dead_strip	_tpm_transmit
.subsections_via_symbols
