	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_ioc_hw_sem_get
_bfa_ioc_hw_sem_get:                    ## @bfa_ioc_hw_sem_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_readl
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	testb	$1, %al
	jne	LBB0_5
## %bb.4:
	addq	$4, %rbx
	movq	_IOCPF_E_SEMLOCKED@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	addq	$4, %rbx
	movq	_IOCPF_E_SEM_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bfa_fsm_send_event             ## TAILCALL
LBB0_5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_BFA_IOC_HWSEM_TOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IOCPF_E_SEM_ERROR,4,2          ## @IOCPF_E_SEM_ERROR
	.comm	_IOCPF_E_SEMLOCKED,4,2          ## @IOCPF_E_SEMLOCKED
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_BFA_IOC_HWSEM_TOV,4,2          ## @BFA_IOC_HWSEM_TOV
	.no_dead_strip	_bfa_ioc_hw_sem_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_ioc_hw_sem_get
_bfa_ioc_hw_sem_get:                    ; @bfa_ioc_hw_sem_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_readl
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	tbnz	w0, #0, LBB0_5
; %bb.2:
	add	x0, x19, #4
Lloh0:
	adrp	x8, _IOCPF_E_SEMLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOCPF_E_SEMLOCKED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	add	x0, x19, #4
Lloh2:
	adrp	x8, _IOCPF_E_SEM_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOCPF_E_SEM_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bfa_fsm_send_event
LBB0_5:
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
Lloh7:
	adrp	x8, _BFA_IOC_HWSEM_TOV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BFA_IOC_HWSEM_TOV@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IOCPF_E_SEM_ERROR,4,2          ; @IOCPF_E_SEM_ERROR
	.comm	_IOCPF_E_SEMLOCKED,4,2          ; @IOCPF_E_SEMLOCKED
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BFA_IOC_HWSEM_TOV,4,2          ; @BFA_IOC_HWSEM_TOV
	.no_dead_strip	_bfa_ioc_hw_sem_get
.subsections_via_symbols
