	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mailbox
_get_mailbox:                           ## @get_mailbox
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %rsi
	movq	_API_FAST_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	andl	%edx, %eax
	movq	_API_RESULT@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edx
LBB0_2:
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	negl	%r14d
	xorl	%r13d, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_API_NO_WAIT_MB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	cmpl	$100, %r13d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%edx, %edx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_try_mailbox
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leal	(%r14,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rsi
	movq	%rbx, %rdi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	xorl	%esi, %esi
	callq	_ivtv_msleep_timeout
	jmp	LBB0_10
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_API_FAST_RESULT,4,2            ## @API_FAST_RESULT
	.comm	_API_RESULT,4,2                 ## @API_RESULT
	.comm	_API_NO_WAIT_MB,4,2             ## @API_NO_WAIT_MB
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_get_mailbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mailbox
_get_mailbox:                           ; @get_mailbox
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x25, [x24]
Lloh2:
	adrp	x8, _API_FAST_RESULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _API_FAST_RESULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w2
Lloh5:
	adrp	x9, _API_RESULT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _API_RESULT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	ldr	w8, [x1]
	csinc	w26, w8, wzr, ne
Lloh8:
	adrp	x27, _API_NO_WAIT_MB@GOTPAGE
Lloh9:
	ldr	x27, [x27, _API_NO_WAIT_MB@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w23, #100
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w26, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w22, #1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_try_mailbox
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w26, w22
	b.ne	LBB0_5
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x24]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	add	x1, x0, x25
	mov	x0, x22
	bl	_time_after
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	mov	w1, #0
	bl	_ivtv_msleep_timeout
	b	LBB0_2
LBB0_9:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_API_FAST_RESULT,4,2            ; @API_FAST_RESULT
	.comm	_API_RESULT,4,2                 ; @API_RESULT
	.comm	_API_NO_WAIT_MB,4,2             ; @API_NO_WAIT_MB
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_get_mailbox
.subsections_via_symbols
